thunderain
Programmer
This should be a simple fix. This is the select clause i am using with microsoft access database using date variable. It works perfect. Date variable is occValue.
strSQL = objRS1("SelectClause"
& " AND (" & fieldname & " Like #" & occValue & "#) ORDER BY " & fieldname
I need to use this in sql server. It seems to have a problem reading the date varible with this:
#" & occValue & "#.
For example with the date variable 4/25/2002 11:05:06 AM coming in from the previous page form, it gives the error:
Line 1: Incorrect syntax near '11'.
Anyone have any ideas on how to make it work.
Thank you
thunderain
strSQL = objRS1("SelectClause"
I need to use this in sql server. It seems to have a problem reading the date varible with this:
#" & occValue & "#.
For example with the date variable 4/25/2002 11:05:06 AM coming in from the previous page form, it gives the error:
Line 1: Incorrect syntax near '11'.
Anyone have any ideas on how to make it work.
Thank you
thunderain