J
Janez Banez
Hi
The datasource of the starting form of my access program
is a query. The query selects the field user and the
properties of this user from the table of all potential
users (and properties). To select the current user I use
the value of function fGetUserName() as criteria (see the
description of the function on:
http://www.mvps.org/access/api/api0066.htm ).
Everythig is OK when the user is in the table of all
users. If he is not then the query is empty an after
opening the form I get empty grey form.
How to avoid such occurrence? I would like to check some
event at the opening of the form to send the user a
message he is not allowed to run the program and to close
the empty form. I tried but I haven't find anything
usefull till now.
Any answer will be welcome
Janez
The datasource of the starting form of my access program
is a query. The query selects the field user and the
properties of this user from the table of all potential
users (and properties). To select the current user I use
the value of function fGetUserName() as criteria (see the
description of the function on:
http://www.mvps.org/access/api/api0066.htm ).
Everythig is OK when the user is in the table of all
users. If he is not then the query is empty an after
opening the form I get empty grey form.
How to avoid such occurrence? I would like to check some
event at the opening of the form to send the user a
message he is not allowed to run the program and to close
the empty form. I tried but I haven't find anything
usefull till now.
Any answer will be welcome
Janez