rstImage.Open "SELECT * FROM Image WHERE SystemNo = ' " & SystemNoUnit & " ' " AND time >= '" + Ttime + " ' ", ConCX, adOpenForwardOnly
can anyone Help me .. how is the correct writing .
any suggestions?
Thanks
rstImage.Open "SELECT * FROM Image WHERE SystemNo = ' " & SystemNoUnit & " ' " AND time >= '" + Ttime + " ' ", ConCX, adOpenForwardOnly
can anyone Help me .. how is the correct writing .
any suggestions?
Thanks
Assuming SystemNoUnit is text type field and Time is a date/time type field, try:
"SELECT * FROM Image WHERE SystemNo = '" & SystemNoUnit & "' AND time >= #" & Ttime & "#", ConCX, adOpenForwardOnly
How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.
Thanks June7 for your attention.... but i still get error
Ttime = 2013-11-28 10:01:34
the error --> '10' ????????
Is Time field a text or date/time type?
Is Ttime an unbound textbox or a variable? The Ttime value is not in standard date/time format - should be: mm/dd/yyyy hh:mm:ss
Don't understand the error - what is the full error message?
How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.