Good Afternoon! I am getting a runtime error (Syntax/missing operator) when I execute the following statement:
DoCmd.OpenForm " FRM_3_8_2007_Budget_Form ", acNormal, acEdit, StrWhere
It compiles fine. I have a dialog box in which users can enter one of several filtering fields. If the user leaves a field blank, it should return all records. The way that I am doing this is as follows:
If Not IsNull(Me.Comb
ff) Then
StrWhere = StrWhere & " And [OfficeID] = " & _
"Me.Comb
ff"
Else
StrWhere = StrWhere & " And [OfficeID] = " & _
"*"
End If
The IDs are autonumbers. Any ideas? Thanks in advance for any help that you can provide!
DoCmd.OpenForm " FRM_3_8_2007_Budget_Form ", acNormal, acEdit, StrWhere
It compiles fine. I have a dialog box in which users can enter one of several filtering fields. If the user leaves a field blank, it should return all records. The way that I am doing this is as follows:
If Not IsNull(Me.Comb
StrWhere = StrWhere & " And [OfficeID] = " & _
"Me.Comb
Else
StrWhere = StrWhere & " And [OfficeID] = " & _
"*"
End If
The IDs are autonumbers. Any ideas? Thanks in advance for any help that you can provide!