Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Formating Date Code to open Report 1

Status
Not open for further replies.

lars7

Technical User
Aug 16, 2005
817
GB
Hi Guys,
Could anyone help with this Code problem. I want a Report to open with the following:

DoCmd.OpenReport "ReportSignUpSheet", acViewPreview, "", "contact='" & List1 & "and AssDate=#" & Format(Me!List2, "mmm-yy") & "# "

but I'm getting a "Syntax error in string in query expresssion" message.

This is the format of the field Assdate "mmm-yy" giving me this date "Oct-06".

Thanks in advance.
 
You need an extra single quote there after the

& List1 & " ' ... part

--------------------------------------
"For a successful technology, reality must take precedence over public relations, for Nature cannot be fooled." - Richard P. Feynman
 
Thanks WildHare,
I missed that.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top