Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / New Users / March 2006

Tip: Looking for answers? Try searching our database.

Disable automatic expression checking?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Frankenbox - 09 Mar 2006 17:09 GMT
I am trying to create a search criteria for a query which selects for entries
by a specific user in a database, or if no-one is specified returns all user
entries.

The following criteria performed the task to my satisfaction:

IIf(IsNull[Which User?],"*",[Which User?])

However upon saving and closing the help feature decided that I needed ""
marks throughout, so that when I opened it to run again the following
expression was in place.

IIf("IsNull[Which User?]","*",[Which User?])

This expression does not work (nor do my attemts at working around the
*helpful* feature)...

How do I prevent Access from treating my like an Idiot and trying to provide
useless assistance?
Douglas J Steele - 09 Mar 2006 17:36 GMT
The first expression was wrong: you didn't have the parentheses for the
IsNull function:

IIf(IsNull([Which User?]),"*",[Which User?])

If it worked the first time, it was just a coincidence.

Better, though, might be:

Nz([WhichUser?], "*")

Signature

Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)

> I am trying to create a search criteria for a query which selects for entries
> by a specific user in a database, or if no-one is specified returns all user
[quoted text clipped - 15 lines]
> How do I prevent Access from treating my like an Idiot and trying to provide
> useless assistance?
Frankenbox - 09 Mar 2006 17:52 GMT
Thanks!

> The first expression was wrong: you didn't have the parentheses for the
> IsNull function:
[quoted text clipped - 29 lines]
> provide
> > useless assistance?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.