我不断收到消息Run-time error '2465' ...can't find the field '|1' referred to in your expression
,我不知道在哪里找到原因,请帮忙!
DoCmd.OpenForm "JournalDetailsDrilldown", acNormal, , "SQL_Where" And [Plymouth - Nominal Detail]![Client Ref] = " & Forms!MainMenu![Client Ref] & "
下面的一个现在正在运作 DoCmd.OpenForm“JournalDetailsDrilldown”,acNormal,,SQL_Where& “和[客户参考] =”&表格!MainMenu![客户参考]
错误信息排序,非常感谢Jacouh !! 1
答案 0 :(得分:2)
你可以试试这个:
SQL_Where = "[Date]>=#" & Format([Forms]![MainMenu]![StartDate], "mm/dd/yyyy") _
& "# AND [Date]<=#" & Format([Forms]![MainMenu]![EndDate], "mm/dd/yyyy") & "#"
DoCmd.OpenForm "JournalDetailsDrilldown", acNormal, , SQL_Where & " And [Client Ref] = " & Forms!MainMenu![Client Ref]
SQL_Where可以替换为适当的SQL,其中的字符串形式为
Columnname = "ColumnValue"
对于表格中提交的字符串[Plymouth - Nominal Detail]。或者:
Columnname = ColumnValue
if [Plymouth - Nominal Detail]!Columnname的类型为numeric。