Results 1 to 3 of 3

Thread: regarding a sql query in MS Acess

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2000
    Location
    Montreal, Canada
    Posts
    14

    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

  2. #2
    Fanatic Member
    Join Date
    Oct 2000
    Location
    London
    Posts
    1,008

    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...

  3. #3
    Hyperactive Member
    Join Date
    Oct 2000
    Location
    Horst
    Posts
    262

    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
  •  



Click Here to Expand Forum to Full Width