Microsoft Access Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsDatabaseMicrosoft Access Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old February 25th, 2004, 02:03 PM
rs8439 rs8439 is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 37 rs8439 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
Search form with ranges

I want to be allow users to search ranges for dates and price and pull back related records from a form. For example, the user can search all values of over $500 or all dates between 12/30/02 -12/30/03. Not sure on the code or where to put this. I believe it would be 2 txt boxes for each but still want users to be able to search one specific date if needed. Does this have to 3 seperate txtboxes for date?

Hlp pls.

Reply With Quote
  #2  
Old February 25th, 2004, 02:18 PM
sbaxter sbaxter is offline
Moderator: Access, SQL
ASP Free God (5000 - 5499 posts)
 
Join Date: Oct 2003
Posts: 5,126 sbaxter User rank is Corporal (100 - 500 Reputation Level)sbaxter User rank is Corporal (100 - 500 Reputation Level)sbaxter User rank is Corporal (100 - 500 Reputation Level)sbaxter User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 Days 1 h 2 m 51 sec
Reputation Power: 13
For Date range two seperate boxes. If they only want one date the enter the same date in both text boxes

S-

Reply With Quote
  #3  
Old February 29th, 2004, 11:04 AM
rs8439 rs8439 is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 37 rs8439 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
In the criteria section of the query for the search I have the following code (referring to user input):

Like [Forms]![SearchTestExpand]![EffDate]

How do I modify this code to allow for ranges (2 entries of date)? Would it be something like:

Like [Forms]![SearchTestExpand]!Between([EffDate] and [EffDate2])

Note:
EffDate = first textbox
EffDate2 = second textbox
for range of dates

Hlp pls!

Reply With Quote
  #4  
Old February 29th, 2004, 11:49 PM
sbaxter sbaxter is offline
Moderator: Access, SQL
ASP Free God (5000 - 5499 posts)
 
Join Date: Oct 2003
Posts: 5,126 sbaxter User rank is Corporal (100 - 500 Reputation Level)sbaxter User rank is Corporal (100 - 500 Reputation Level)sbaxter User rank is Corporal (100 - 500 Reputation Level)sbaxter User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 Days 1 h 2 m 51 sec
Reputation Power: 13
Between [Forms]![SearchTestExpand]![EffDate] and [Forms]![SearchTestExpand]![EffDate][EffDate2]

S-

Reply With Quote
Reply

Viewing: ASP Free ForumsDatabaseMicrosoft Access Help > Search form with ranges


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
Stay green...Green IT