|
-
Nov 3rd, 2000, 12:39 AM
#1
Thread Starter
New Member
Try this one
SELECT * FROM Orders WHERE (Orders.dateofreceipt>text1.text .and. Orders.dateofreceipt<text2.text)
make sure text1.text and text2.text are properly formatted to reflect dates.
 File not found!
Abort, Retry, Get a Beer...
L8r
-
Nov 3rd, 2000, 04:18 AM
#2
Fanatic Member
Access SQL
You can use Between...And in Access as well. Don't forget to include the date literal characters #! Check out the help topic on Between...And in Access and have a look at the Example - that will give you what you want.
Cheers,
Paul.
Not nearly so tired now...
Haven't been around much so be gentle...
-
Nov 3rd, 2000, 09:20 AM
#3
Hyperactive Member
Build Query "Wizard"
Hi,
If you're building in Access and thus running the queries within access why not build the query in "design"-mode?
You just add the needed tables;
then drag the needed fields;
right click in the "criteria" field and select "build..." (or something like that)
click "BETWEEN"
Select the first field
click "AND"
select the second field
click OK
that should also work.
You can than look in "SQL"-mode for the correct SQL-statement!
regards,
visual sander
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
|