Query syntax error 3075
- From: "T. Wintershoven" <wintershoven@xxxxxxxxxxx>
- Date: Tue, 29 Nov 2005 12:40:15 +0100
Hi all,
Can someone please tell me what's wrong with the following query
I get the error 3075 "something is wrong with the syntax"
sql_HTRecords = "select * from Orders where FPrint = '" & "J'" & _
"AND HTDMAD > #" & Format$(datereminder, "mm-dd-yyyy") & "#" & _
"AND PerBank Is Null "
It's a copy from the one below and that one works fine
sql_HTRecords = "select * from Orders where FPrint = '" & "J'" & _
"AND FDate < #" & Format$(TDate, "mm-dd-yyyy") & "#" & _
"AND PerBank Is Null "
I belief that the datevariable HTDMAD is incorrect because i replaced FDate
with HTDMAD
FDate is information from the database (access 2003)
Why is HTDMAD wrong in the query
T.i.a.
Regards
Tino Wintershoven
The Netherlands
.
- Follow-Ups:
- Re: Query syntax error 3075
- From: Ade
- Re: Query syntax error 3075
- Prev by Date: Re: easy question
- Next by Date: Re: easy question
- Previous by thread: easy question
- Next by thread: Re: Query syntax error 3075
- Index(es):
Relevant Pages
|