Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - ADO Select Question
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

ADO Select Question

 Post Reply Post Reply
Author
velkymx View Drop Down
Groupie
Groupie


Joined: 24 February 2003
Location: United States
Status: Offline
Points: 44
Post Options Post Options   Thanks (0) Thanks(0)   Quote velkymx Quote  Post ReplyReply Direct Link To This Post Topic: ADO Select Question
    Posted: 22 August 2003 at 11:33pm

I am using ASP (duh) and ADO to connect to an Access Database. I am trying to select a group of people for an entire month; ie: Select all of the member who registered this month.

I already have a database with the dates entered (in Date/Time format) but I just can figure out how to process it.

HELP!

Back to Top
Bunce View Drop Down
Senior Member
Senior Member
Avatar

Joined: 10 April 2002
Location: Australia
Status: Offline
Points: 846
Post Options Post Options   Thanks (0) Thanks(0)   Quote Bunce Quote  Post ReplyReply Direct Link To This Post Posted: 23 August 2003 at 1:39am

Firstly, try to get a grip using the SQL dialect:
www.w3schools.com/sql

You then need to connect to the database using a connection string:
http://www.able-consulting.com/MDAC/ADO/Connection/OLEDB_Providers.htm#OLEDBProviderForMicrosoftJet

To display your results, check out this site for some of Borgs scripts, the FAQ, or a search on google will give you many ideas.

Cheers,
Andrew



Edited by Bunce
There have been many, many posts made throughout the world...
This was one of them.
Back to Top
velkymx View Drop Down
Groupie
Groupie


Joined: 24 February 2003
Location: United States
Status: Offline
Points: 44
Post Options Post Options   Thanks (0) Thanks(0)   Quote velkymx Quote  Post ReplyReply Direct Link To This Post Posted: 23 August 2003 at 12:31pm

I already know how to do select statements and connections. I just dont know how to pick out item where something = a date range. IE SELECT * WHERE Date >= 8/1/2003

Thanks!



Edited by velkymx
Back to Top
Bliss View Drop Down
Groupie
Groupie
Avatar

Joined: 25 April 2003
Location: United States
Status: Offline
Points: 181
Post Options Post Options   Thanks (0) Thanks(0)   Quote Bliss Quote  Post ReplyReply Direct Link To This Post Posted: 23 August 2003 at 5:18pm

SELECT * FROM tblSomething WHERE Field = "asdf"

Hehehe...
Back to Top
b_bonnett View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 16 April 2003
Location: New Zealand
Status: Offline
Points: 275
Post Options Post Options   Thanks (0) Thanks(0)   Quote b_bonnett Quote  Post ReplyReply Direct Link To This Post Posted: 23 August 2003 at 5:33pm

That would work for strings (if you used single quotes instead of double), but for dates in Access you need to enclose the date in the # character:

Select * From tblWhatever Where tblWhatever.Date >= #8/1/2003#

Blair

Webmaster, The Plane Gallery
Greetings From Christchurch
Back to Top
velkymx View Drop Down
Groupie
Groupie


Joined: 24 February 2003
Location: United States
Status: Offline
Points: 44
Post Options Post Options   Thanks (0) Thanks(0)   Quote velkymx Quote  Post ReplyReply Direct Link To This Post Posted: 25 August 2003 at 4:56pm
Thanks everyone! It worked great.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.