Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Query issue (where cell populated aswell as any of the other listed ce

Status
Not open for further replies.

chrisjohns

Technical User
Mar 1, 2009
11
0
0
GB
Hi,

I have a query im wanting to run on a table but i cant get the syntax to work with it.

Im trying to get it to display records where "DateJoined" is populated, and any of the other cells listed in the query are populated (be that 1, 5 or all).

E.g Date ="01/01/01"

Name = ""
Surname = ""
MaidenName = "Johns"

So it will pick this up because it has MaidenName populated.
 
I am having trouble picturing a table with that might contain all empty "fields" (not cells). Your WHERE clause in the query might look something like:
Code:
WHERE  [DateJoined] Is Not Null AND Len([FieldA] & [FieldB] & [FieldC] & [FieldD] & [FieldE] & "") > 0

Duane
Hook'D on Access
MS Access MVP
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top