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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Query Date Problem with .ADP using VBA

Status
Not open for further replies.

carlp69

IS-IT--Management
Sep 23, 2003
157
GB
I have the following statement in VBA that works fine on a .MBD Database, But does not work on a .ADP Project. The error is 'Incorrect syntax near '#'

Can anybody tell me the correct format for .ADP

Me.Form.RecordSource = "select * from qry_leave WHERE [startdate] = #" & Format(me.parent![Startdate], "mm/dd/yyyy") & "#"

Cheers

carlp69

 
For future Reference

I've sorted it.

Replace the # with '

carlp69
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top