Hi,
I'm not sure I follow but maybe this is close to what you are looking for:
AUTOEXEC macro
Condition Action
CurrentUser() = "Manager" OpenForm -----> Manager's
Form
CurrentUser() = "Employee" OpenForm -----> Employee's
Form
OR maybe you lookinf for:
Have a criteria in whatever Form is opened by the autoexec macro with the
criteria
Field: Emp_Class_ID
Criteria: CurrentUser()
I hope this helps! If you have additional questions on this topic, please
respond back to this posting.
Regards,
Eric Butts
Microsoft Access Support
(e-mail address removed)
"Microsoft Security Announcement: Have you installed the patch for
Microsoft Security Bulletin MS03-026? If not Microsoft strongly advises
you to review the information at the following link regarding Microsoft
Security Bulletin MS03-026
<
http://www.microsoft.com/security/security_bulletins/ms03-026.asp> and/or
to visit Windows Update at <
http://windowsupdate.microsoft.com/> to install
the patch. Running the SCAN program from the Windows Update site will help
to insure you are current with all security patches, not just MS03-026."
This posting is provided "AS IS" with no warranties, and confers no rights
--------------------
| Thread-Topic: Starting Database with different forms
| thread-index: AcSkrtKt+yc2bLa/R5yUopZf0U9jcg==
| X-WBNR-Posting-Host: 192.60.35.127
| From: "=?Utf-8?B?Tm9yYWg=?=" <
[email protected]>
| Subject: Starting Database with different forms
| Date: Mon, 27 Sep 2004 09:27:03 -0700
| Lines: 18
| Message-ID: <
[email protected]>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="Utf-8"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Content-Class: urn:content-classes:message
| Importance: normal
| Priority: normal
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| Newsgroups: microsoft.public.access.macros
| NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.1.29
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGXA03.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.access.macros:33490
| X-Tomcat-NG: microsoft.public.access.macros
|
| I would like to start access (MS Access 2000) in a forms view based on
the
| CurrentUsers permission level. For example. A user defined as a Manager
| would get the Manager's Main menu and Staff members would open to the
Staff's
| main menu. I've tried setting up an autoexec macro with conditions based
on
| a query that pulls the "class" (manager, staff) field out of the secured
| employee info but this is not working.
|
| using expression builder I get this
| [qry_Find_User_Class]![Emp_Class_ID] = "Manager"
|
| The query uses the criteria CurrentUser() to pull the Emp_Class_ID
| ("Manager", "Staff", etc..) from the secured Emp_Info table.
|
| This does not work.
|
| Any suggestions?
| --
| Never take life seriously. Nobody gets out alive, anyway.
|