B
BRC
I am still having problems with the syntax of this statement. I am
trying to join the following statements
rst.FindFirst " [event] = " & Chr(34) & Me.event & Chr(34)
and
rst.FindFirst "[date] = " & Format(Me.[date], "\#mm/dd/yyyy\#")
individually they work, but when i try to put them together as in:
rst.FindFirst _
"[date] = " & Format(Me.[date], "\#mm/dd/yyyy\#)" & _
" AND [event] = " & Chr(34) & Me.event & Chr(34) the vb
editor
says "syntax error" the problem seems to be around puncuation of the
"and " any thought s would be appreciated.
event is a string and date is a date field. "date" and "event" are
fields on the form and fields in the table
Thanks for any suggestions
trying to join the following statements
rst.FindFirst " [event] = " & Chr(34) & Me.event & Chr(34)
and
rst.FindFirst "[date] = " & Format(Me.[date], "\#mm/dd/yyyy\#")
individually they work, but when i try to put them together as in:
rst.FindFirst _
"[date] = " & Format(Me.[date], "\#mm/dd/yyyy\#)" & _
" AND [event] = " & Chr(34) & Me.event & Chr(34) the vb
editor
says "syntax error" the problem seems to be around puncuation of the
"and " any thought s would be appreciated.
event is a string and date is a date field. "date" and "event" are
fields on the form and fields in the table
Thanks for any suggestions