Log in Form select query

M

Mart

I've done this before using th DLOOKUP function.

The users entered an ID in a txt box. The after update of
the txt box use the dlookup to check the user existed.

You may want to skip the whole process. What I use now is
a list of IDs. They are stored in the Environ collection.

Environ("UserName") will show the current user.

Try entering Environ("UserName") as the critera in a query
looking at a table of user ids or use the dlookup to do
this when you open the first form the uses see, closing
the form if it cannot find the user.
 
G

Gavin Webb

That sounds good.
Just two questions then.
What is an Environ collection and how do I add a list of
IDs to it?

Thanks
G
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top