|
-
Jun 26th, 2004, 12:53 PM
#1
Thread Starter
New Member
Whats wrong with this SQL query?
Im trying to search a MS Access database for a specific date. Im getting a an error message, translated to english its something like: "typeerror in query". The column's type is a Date/Time with the format short date.
the query is as follows:
SELECT Personel.Sign, Personel.Firstname, Personel.Lastname, Absent.Date
FROM Personel, Absent
WHERE Absent.Date = '" & datetimepicker.Value.Date & "' AND Personel.Sign = Absent.Teacher_Sign
Would really appreciate help
-
Jun 26th, 2004, 06:22 PM
#2
Hyperactive Member
#" & Format(DateTimePicker1.Value, "MM/dd/yyyy") & "# is how date comparisons should be made
i.e the date enclosed in # and in the fomrat of MM/dd/yyyy
-
Jun 26th, 2004, 07:18 PM
#3
Thread Starter
New Member
Sweet, was the ' instead of the # surrounding the phrase that messed it up. Thanks a bunch!
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
|