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!

Having trouble with building an SQL statement on the fly.

Status
Not open for further replies.

ToyFox

Programmer
Jan 24, 2009
161
US
I am building an sql statement on the fly...
I am getting the following error....
Syntax error (missing operator) in query expression 'Task_Received = 2/3/2009 12:01:39 PM'.

sSQL = "SELECT Task_Information.* FROM Task_Information WHERE Task_Received = " & Me.txtReceived


Task_Received is a date/time field. Me.txtReceived is on the form. What am I doing wrong.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top