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 November 3rd, 2003, 08:58 AM
roadsign252 roadsign252 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Location: Canada
Posts: 3 roadsign252 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
ms Access Query

I have a simple query with two tables. One table named List has a complete list of currency values and the other table MinMax contains a minumum
value (currency) and a maximum value (currency).
When I query the complete List with Between 352.00 and 398.46
for instance everything works.
But when I query the complete table List with
Between MinMax.Min and MinMax.Max it does not work.
How can I query one table with values from taken from another?

Reply With Quote
  #2  
Old November 3rd, 2003, 09:29 AM
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: 12
This statement should work

SELECT values.CurValues
FROM [values], MinMax
WHERE (((values.CurValues) Between [minmax].[min] And [minmax].[max]) AND ((MinMax.PKey)=2));


I added a PKey field to my variation of MinMax so the the Select statment would know which record to use.

If you need I can send you a sample DB where this works.
s-

Reply With Quote
  #3  
Old November 3rd, 2003, 09:48 AM
roadsign252 roadsign252 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Location: Canada
Posts: 3 roadsign252 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Its nice to know that its possible. I thought that it would be.
I am working on this.
Sending me a sample database would be more that I would expect but that would be a real help to me at this time.
Thank you very much if you can do that.
Bill

Reply With Quote
  #4  
Old November 3rd, 2003, 10:07 AM
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: 12
Here is the Sample DB

Reply With Quote
  #5  
Old November 3rd, 2003, 01:12 PM
roadsign252 roadsign252 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Location: Canada
Posts: 3 roadsign252 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thanks Very Much

This worked perfectly. Thanks Very Much/
If I can do something for you let me know. Just email me and I
will contact you back.
Just a note.
I took this job from a local businessman who had a developer hired to build his database. This developer could not accomplish this task either and after a lengthy period gave up on it.
I do a lot of online database work and I think I could have done this in Cold Fusion or PHP but the businessman wanted the job inside his Access application.
Thanks again.
Bill

Reply With Quote
Reply

Viewing: ASP Free ForumsDatabaseMicrosoft Access Help > ms Access Query


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 5 hosted by Hostway
Stay green...Green IT