Query Results Based on UserID

DanG

Registered User.
Local time
Today, 08:33
Joined
Nov 4, 2004
Messages
477
Hello,

I have a query (used in a combox) with a field called "UserID" and in the query I would like to have the UserID field get it's criteria from the "User" field on a hidden form.

I have it for the most part however, I have two users (myself and another) that when we use the combo box we se "All" the records in the query.
I was thinking something like:
Code:
IIf([Forms]![frmUser]![user]= [User],true, "*")

I hope this makes sense.

Thank you
 
Maybe making the question more simple will help :)

In my query the UserID gets the criteria from the reference to the hidden form. In the event that there is "NOT" a match I would like the default to be to show "All" records.

Currently the query only runs when there is a match.

HTH.
 

Users who are viewing this thread

Back
Top Bottom