473,395 Members | 1,456 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Different Startup for Groups of Users - Need 2 mde's?

Hi -
I can't seem to choose the keywords to find an answer to this query -
or maybe it's not in the posts.

I have a database where the Buyers enter their Orders and then
Accounts Payable posts freight and invoices against the orders (when
the bills come in). Both groups run reports, but a very different
universe of reports.

I don't want the Buyers to see or be able to post freight or
invoices. I'd prefer AP not be able to see the data entry screens, so
the buyers don't try to make AP do their entry for them. BUT that is
my backup plan, if needed.

All my data is in a Backend DB and the app in a front end. I'd like
Buyers to see their choices and their report choices when they open
the DB, and AP see theirs. Do I have to create 2 MDEs for that? One
for each group? I worry, since there is some overlap - Update Order,
for example, will be accessed by both groups.

Can this be done? And if so, how? I'm about a level 2 (out of 5 - 5
being the highest) when it comes to writing my own code. I'm much
better when it comes to reading someone else's and adapting it, if I
understand the objective.

Thanks -
Sara

Apr 12 '07 #1
4 2002
If the users log into the DB then have one form open for one set of users
and a second form open for another set of users. You could also use environ
("username") to check their PC longin name.

"sara" <sa*******@yahoo.comwrote in message
news:11*********************@o5g2000hsb.googlegrou ps.com...
Hi -
I can't seem to choose the keywords to find an answer to this query -
or maybe it's not in the posts.

I have a database where the Buyers enter their Orders and then
Accounts Payable posts freight and invoices against the orders (when
the bills come in). Both groups run reports, but a very different
universe of reports.

I don't want the Buyers to see or be able to post freight or
invoices. I'd prefer AP not be able to see the data entry screens, so
the buyers don't try to make AP do their entry for them. BUT that is
my backup plan, if needed.

All my data is in a Backend DB and the app in a front end. I'd like
Buyers to see their choices and their report choices when they open
the DB, and AP see theirs. Do I have to create 2 MDEs for that? One
for each group? I worry, since there is some overlap - Update Order,
for example, will be accessed by both groups.

Can this be done? And if so, how? I'm about a level 2 (out of 5 - 5
being the highest) when it comes to writing my own code. I'm much
better when it comes to reading someone else's and adapting it, if I
understand the objective.

Thanks -
Sara

Apr 12 '07 #2
On Apr 12, 5:53 pm, "Scott" <scott.n.j...@ns.sympatico.cawrote:
If the users log into the DB then have one form open for one set of users
and a second form open for another set of users. You could also use environ
("username") to check their PC longin name.

"sara" <saraqp...@yahoo.comwrote in message

news:11*********************@o5g2000hsb.googlegrou ps.com...
Hi -
I can't seem to choose the keywords to find an answer to this query -
or maybe it's not in the posts.
I have a database where the Buyers enter their Orders and then
Accounts Payable posts freight and invoices against the orders (when
the bills come in). Both groups run reports, but a very different
universe of reports.
I don't want the Buyers to see or be able to post freight or
invoices. I'd prefer AP not be able to see the data entry screens, so
the buyers don't try to make AP do their entry for them. BUT that is
my backup plan, if needed.
All my data is in a Backend DB and the app in a front end. I'd like
Buyers to see their choices and their report choices when they open
the DB, and AP see theirs. Do I have to create 2 MDEs for that? One
for each group? I worry, since there is some overlap - Update Order,
for example, will be accessed by both groups.
Can this be done? And if so, how? I'm about a level 2 (out of 5 - 5
being the highest) when it comes to writing my own code. I'm much
better when it comes to reading someone else's and adapting it, if I
understand the objective.
Thanks -
Sara- Hide quoted text -

- Show quoted text -
Thanks, Scott. I'm a little happy with your response - only insofar
as I couldn't find a solution within Access, and there isn't one! I
will create 2 forms and figure out how to get the right one(s) opened.

Thanks
Sara

Apr 13 '07 #3
On Apr 13, 8:44 am, "sara" <saraqp...@yahoo.comwrote:
On Apr 12, 5:53 pm, "Scott" <scott.n.j...@ns.sympatico.cawrote:


If the users log into the DB then have one form open for one set of users
and a second form open for another set of users. You could also use environ
("username") to check their PC longin name.
"sara" <saraqp...@yahoo.comwrote in message
news:11*********************@o5g2000hsb.googlegrou ps.com...
Hi -
I can't seem to choose the keywords to find an answer to this query -
or maybe it's not in the posts.
I have a database where the Buyers enter their Orders and then
Accounts Payable posts freight and invoices against the orders (when
the bills come in). Both groups run reports, but a very different
universe of reports.
I don't want the Buyers to see or be able to post freight or
invoices. I'd prefer AP not be able to see the data entry screens, so
the buyers don't try to make AP do their entry for them. BUT that is
my backup plan, if needed.
All my data is in a Backend DB and the app in a front end. I'd like
Buyers to see their choices and their report choices when they open
the DB, and AP see theirs. Do I have to create 2 MDEs for that? One
for each group? I worry, since there is some overlap - Update Order,
for example, will be accessed by both groups.
Can this be done? And if so, how? I'm about a level 2 (out of 5 - 5
being the highest) when it comes to writing my own code. I'm much
better when it comes to reading someone else's and adapting it, if I
understand the objective.
Thanks -
Sara- Hide quoted text -
- Show quoted text -

Thanks, Scott. I'm a little happy with your response - only insofar
as I couldn't find a solution within Access, and there isn't one! I
will create 2 forms and figure out how to get the right one(s) opened.

Thanks
Sara- Hide quoted text -

- Show quoted text -
I use Access security for this. I produce different groups and then
use the following function to open custom menu forms for that group
(from a Startup form, I issue Docmd.Openform GroupMenu):

Function GroupMenu() As String

If IsUserInGroup(CurrentUser(), "Admins") Then GroupMenu =
"frmOutsourceDB0"
If IsUserInGroup(CurrentUser(), "MetEdit") Then GroupMenu =
"frmOutsourceDB1"
If IsUserInGroup(CurrentUser(), "MetRead") Then GroupMenu =
"frmOutsourceDB1"
If IsUserInGroup(CurrentUser(), "ShipRead") Then GroupMenu =
"frmOutsourceDB2"
If IsUserInGroup(CurrentUser(), "ShipEdit") Then GroupMenu =
"frmOutsourceDB2"
If IsUserInGroup(CurrentUser(), "ProdEdit") Then GroupMenu =
"frmOutsourceDB3"
If IsUserInGroup(CurrentUser(), "ProdRead") Then GroupMenu =
"frmOutsourceDB3"

End Function

Function IsUserInGroup(strUser As String, strGroup As String) As
Boolean
'Returns True if the user is in the group.
'Example: IsUserInGroup(CurrentUser(), "Admins")
Dim wk As Workspace
Dim grx As Groups
Dim grp As Group
Dim usx As Users
Dim usr As User

Set grx = DBEngine(0).Groups
For Each grp In grx
If grp.Name = strGroup Then
Set usx = grp.Users
For Each usr In usx
If usr.Name = strUser Then
IsUserInGroup = True
Exit For
End If
Next
End If
Next

Set usr = Nothing
Set usx = Nothing
Set grp = Nothing
Set grx = Nothing
End Function

I also use Access security to limit the permissions on each group.
If a group member tries to open a form, table, whatever, that they
shouldn't, they get a gentle warning that they don't have permission
for that. Remember, Access security is not airtight, so only use it
for simple application management needs.

Apr 13 '07 #4
On Apr 13, 9:15 am, rizzy...@neo.rr.com wrote:
On Apr 13, 8:44 am, "sara" <saraqp...@yahoo.comwrote:


On Apr 12, 5:53 pm, "Scott" <scott.n.j...@ns.sympatico.cawrote:
If the users log into the DB then have one form open for one set of users
and a second form open for another set of users. You could also use environ
("username") to check their PC longin name.
"sara" <saraqp...@yahoo.comwrote in message
>news:11*********************@o5g2000hsb.googlegro ups.com...
Hi -
I can't seem to choose the keywords to find an answer to this query -
or maybe it's not in the posts.
I have a database where the Buyers enter their Orders and then
Accounts Payable posts freight and invoices against the orders (when
the bills come in). Both groups run reports, but a very different
universe of reports.
I don't want the Buyers to see or be able to post freight or
invoices. I'd prefer AP not be able to see the data entry screens, so
the buyers don't try to make AP do their entry for them. BUT that is
my backup plan, if needed.
All my data is in a Backend DB and the app in a front end. I'd like
Buyers to see their choices and their report choices when they open
the DB, and AP see theirs. Do I have to create 2 MDEs for that? One
for each group? I worry, since there is some overlap - Update Order,
for example, will be accessed by both groups.
Can this be done? And if so, how? I'm about a level 2 (out of 5 - 5
being the highest) when it comes to writing my own code. I'm much
better when it comes to reading someone else's and adapting it, if I
understand the objective.
Thanks -
Sara- Hide quoted text -
- Show quoted text -
Thanks, Scott. I'm a little happy with your response - only insofar
as I couldn't find a solution within Access, and there isn't one! I
will create 2 forms and figure out how to get the right one(s) opened.
Thanks
Sara- Hide quoted text -
- Show quoted text -

I use Access security for this. I produce different groups and then
use the following function to open custom menu forms for that group
(from a Startup form, I issue Docmd.Openform GroupMenu):

Function GroupMenu() As String

If IsUserInGroup(CurrentUser(), "Admins") Then GroupMenu =
"frmOutsourceDB0"
If IsUserInGroup(CurrentUser(), "MetEdit") Then GroupMenu =
"frmOutsourceDB1"
If IsUserInGroup(CurrentUser(), "MetRead") Then GroupMenu =
"frmOutsourceDB1"
If IsUserInGroup(CurrentUser(), "ShipRead") Then GroupMenu =
"frmOutsourceDB2"
If IsUserInGroup(CurrentUser(), "ShipEdit") Then GroupMenu =
"frmOutsourceDB2"
If IsUserInGroup(CurrentUser(), "ProdEdit") Then GroupMenu =
"frmOutsourceDB3"
If IsUserInGroup(CurrentUser(), "ProdRead") Then GroupMenu =
"frmOutsourceDB3"

End Function

Function IsUserInGroup(strUser As String, strGroup As String) As
Boolean
'Returns True if the user is in the group.
'Example: IsUserInGroup(CurrentUser(), "Admins")
Dim wk As Workspace
Dim grx As Groups
Dim grp As Group
Dim usx As Users
Dim usr As User

Set grx = DBEngine(0).Groups
For Each grp In grx
If grp.Name = strGroup Then
Set usx = grp.Users
For Each usr In usx
If usr.Name = strUser Then
IsUserInGroup = True
Exit For
End If
Next
End If
Next

Set usr = Nothing
Set usx = Nothing
Set grp = Nothing
Set grx = Nothing
End Function

I also use Access security to limit the permissions on each group.
If a group member tries to open a form, table, whatever, that they
shouldn't, they get a gentle warning that they don't have permission
for that. Remember, Access security is not airtight, so only use it
for simple application management needs.- Hide quoted text -

- Show quoted text -
This is interesting....I will take a look at this and try to apply. I
have always been told to stay away from Access security, but given
your explanation - and warning!! - this seems like it might be a good
application of the Access security.

Thanks. I'll go now and try to figure this out and apply it.

Sara

Apr 13 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Ray | last post by:
I have a input form linked to a table and found the total no of records on the bottom bar is different from that of table. Can someone advise an effective way to find out the different records...
3
by: SD | last post by:
Hi, I have been struggling with this problem for two days. My development PC is running Windows XP/Office 97. The work stations are running Windows 2000/Office 97. In the past I have always...
7
by: cefrancke | last post by:
I cant seem to find a straight answer on the following. I want to programmatically hide all menus except a basic custom report menu (during report preview) and right click pop-up A-Z sorting on...
2
by: TechBoy | last post by:
Hello. Re: Access 2002-SP3 I have some options turned off under "Tools/Startup" area on my workstation. When I deploy my app to 5 users (who will all have a full blown version of Access 2002...
1
by: deko | last post by:
I'm trying to set startup properties with code after I make an MDB into an MDE. I have this code in the startup form's Form_Open event: If IsItMde Then For Each var In Array("Perform Name...
7
by: Simon | last post by:
Dear reader, By running the program in MDB every think works perfect. By running the same program in MDE the VBA code in the form gives the following message: "The expression On Open...
4
JodiPhillips
by: JodiPhillips | last post by:
MS Access2000 Hi everyone, I've searched the forums for an answer to this question and nothing jumps out at me. When a database is opened I want to automatically run code (at start-up) that...
1
by: Anne | last post by:
Hi, How can I in a MDE-file disable the "startup with Right Shift Key" ? I tried it in Options --Startup, but can't get it working. Thanks, Anne
15
by: Anne | last post by:
Hi, Is it possible to change the startup-icon of a .mde-file? I know I can change it in a shortcutfile, but I want it also be changed in the .mde-file. Thanks in advance
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.