-
June 4th, 2003, 02:39 AM
#1
help please!
hello experts!
i think this query works fine but the results returns a date that is NOT between January and March....
is there something wrong with my query??
Data1.RecordSource = "Select publisher, address, postalcode, tel, fax, isbn, publication, author, edition, l_used, b_used From isbn Where format([Date], ""yyyy"") = '" & year.Text & "' AND Format([Date], ""mmm"") between 'Jan' and 'Mar' order by publisher"
Thankies!!
Joy
-
June 4th, 2003, 03:08 AM
#2
SQL Query Problem
Hi kjcarrots,
Please replace your query with following:
Data1.RecordSource = "Select publisher, address, postalcode, tel, fax, isbn, publication, author, edition, l_used, b_used From isbn Where YEAR([Date]) = '" & year.Text & "' AND (MONTH([Date]) between 1 and 3) order by publisher"
Hope this will solve your problem.
-
June 4th, 2003, 07:16 AM
#3
for your purposes, better than the MONTH command is the MONTHNAME command.
Mike
-
June 4th, 2003, 07:09 PM
#4
Thanks guys for the help!
JOY
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
|