|
-
May 24th, 2002, 11:58 AM
#1
Thread Starter
New Member
SQL syntax for date
hi....this website has got me going...i need help with the syntax of the following SQL in vb....cant seem to get the date into the SQL properly. Please help....thanks!!! Need to find age older than certain date!!
the SQL syntax for Date ?
Dim dSearch AS date
dSearch = InputBox$("Enter date to show employees older than","QUERY")
Data1.recordsource = "SELECT * FROM StaffDetails WHERE StaffDetails.[Date-of-Birth] <= " &dSearch
I thought about not putting the speech marks after dSearch as it is a date and not string....any suggestions??? Many thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|