Microsoft Access Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesMicrosoft Access Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old June 23rd, 2004, 12:45 PM
[ABA] moto [ABA] moto is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 9 [ABA] moto User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Lightbulb Request QUERY for non-assigned values

Dear all:
I have a field named "SOURCE" which is represented with a scroll bar and options "End User", "Reseller", "Distributor", and "Tier One Customer". However, sometimes I do not pick any of them into SOURCE.

It occurs to me that when no values are assigned to SOURCE, I will not be able to QUERY those data IF my condition is more than one.

For instance:

WHERE ((([Quote Details].QuoteNumber) Like "*" & [Enter a Quote Number: ]) AND (([Quote Master List].Customer) Like "*" & [Enter a Customer: ] & "*") AND (([Quote Master List].source) Like "*" & [Enter a SOURCE: ] & "*") AND (([Quote Details].PartNumber) Like "*" & [Enter Part Number: ] & "*"))

Three windows will be prompted to ask me to "Enter a Quote Number", "Enter a Customer", "Enter a source", and "Enter a part number".

If I just enter 12005 for "quote number" and nothing for the rest three, it will list out all information for quote 12005. However, it DOES NOT SHOW those data where SOURCE is not assigned with a value.

On the other hand, if I just have a QUERY for QuoteNumber ONLY, and I enter 12005 at the prompt, then I will be given all information that links to 12005, including the ones that has SOURCE with empty blank (no assigned values).

In this case, my purpose of doing a multi-field matching query is incomplete. I am not sure in MS Access, when you have a scroll bar of values but you do not assign anything to it, is it considered as an empty string or as a NULL character or?



Any of you have some idea of how to fix this situation? I tried Enter a SOURCE: ] & "*" & (IsNULL) but it does not seem to work as well....

Reply With Quote
  #2  
Old June 30th, 2004, 05:51 PM
[ABA] moto [ABA] moto is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 9 [ABA] moto User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Red face

anyone...? =__=

Reply With Quote
  #3  
Old November 9th, 2004, 04:04 AM
at71 at71 is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 7 at71 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Quote:
Originally Posted by [ABA] moto
anyone...? =__=


You can see in this link :h77p://www.microsoft-accesssolutions.co.uk/blank_query_parameter.htm

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesMicrosoft Access Development > Request QUERY for non-assigned values


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