A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

query issues - critera being ignored



 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old February 16th, 2007, 03:30 AM posted to microsoft.public.access.queries
Dave
external usenet poster
 
Posts: 2,331
Default query issues - critera being ignored

All,

Found some similar posts, but didn't help my sitaution. Any help would be
appreciated. I've got the following in query design view. The function
works and pulls in a variable from combo box. The appropriate records are
selected. What is killing me is if I add an "or" conditon. Either of the
conditions work seperately but when both exist in the query, all users
dispalyed is the outcome regardless if the variable is null or has value.
Trying to avoid wrtiing multiple queries for a form. Any thoughts? Thanks in
advance.

(WORKS)

STATUS USER
---------- --------
"COMPLETE" GetUSER("A")

(WORKS)

STATUS USER
---------- --------
"COMPLETE" Like "*" (or use a blank)


(DOES NOT WORK DISPLAYS ALL, ignores GetUSER)
---------- --------
"COMPLETE" GetUSER("A")
"COMPLETE" Like "*"
 




Thread Tools
Display Modes

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 Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 01:29 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.