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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Left Join Query - URGENT

Status
Not open for further replies.

darrenhubbard

Technical User
Apr 28, 2003
17
GB
I have a table with four fields (call them a b c z) and a very simple query that uses some custom vba functions. The results of this simple query is 8 fields (call them a b c d e f g h).

I've written a Left Join query so field z gets matched into the other query AND so anything that doesn't match remains. This works fine on "perfect" data.

What I need: if there is an entry in the table with a blank field a (but the rest of the fields populated), the Left Join should match to ANY value of a in the corresponding query. I've tried a few things but I can't get it to work! Over to you guys...

Now, it can be pretty flexible -- field a does not have to be blank to indicate that it should match to anything -- it could be the world "ALL" or whatever. Similarly, if there's a better way of doing this other than a Left Join then that's fine too, but I ideally want to avoid an complex vba functions.

Thanks for all your help!

TIA,

Darren
 
It's OK people. not to worry -- I solved it about two minutes after I posted (and it was more simple than I thought...)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top