473,804 Members | 3,312 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2025
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*******@yaho o.comwrote in message
news:11******** *************@o 5g2000hsb.googl egroups.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...@n s.sympatico.caw rote:
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...@yaho o.comwrote in message

news:11******** *************@o 5g2000hsb.googl egroups.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...@yaho o.comwrote:
On Apr 12, 5:53 pm, "Scott" <scott.n.j...@n s.sympatico.caw rote:


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...@yaho o.comwrote in message
news:11******** *************@o 5g2000hsb.googl egroups.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(C urrentUser(), "Admins") Then GroupMenu =
"frmOutsourceDB 0"
If IsUserInGroup(C urrentUser(), "MetEdit") Then GroupMenu =
"frmOutsourceDB 1"
If IsUserInGroup(C urrentUser(), "MetRead") Then GroupMenu =
"frmOutsourceDB 1"
If IsUserInGroup(C urrentUser(), "ShipRead") Then GroupMenu =
"frmOutsourceDB 2"
If IsUserInGroup(C urrentUser(), "ShipEdit") Then GroupMenu =
"frmOutsourceDB 2"
If IsUserInGroup(C urrentUser(), "ProdEdit") Then GroupMenu =
"frmOutsourceDB 3"
If IsUserInGroup(C urrentUser(), "ProdRead") Then GroupMenu =
"frmOutsourceDB 3"

End Function

Function IsUserInGroup(s trUser As String, strGroup As String) As
Boolean
'Returns True if the user is in the group.
'Example: IsUserInGroup(C urrentUser(), "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).Gro ups
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...@yaho o.comwrote:


On Apr 12, 5:53 pm, "Scott" <scott.n.j...@n s.sympatico.caw rote:
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...@yaho o.comwrote in message
>news:11******* **************@ o5g2000hsb.goog legroups.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(C urrentUser(), "Admins") Then GroupMenu =
"frmOutsourceDB 0"
If IsUserInGroup(C urrentUser(), "MetEdit") Then GroupMenu =
"frmOutsourceDB 1"
If IsUserInGroup(C urrentUser(), "MetRead") Then GroupMenu =
"frmOutsourceDB 1"
If IsUserInGroup(C urrentUser(), "ShipRead") Then GroupMenu =
"frmOutsourceDB 2"
If IsUserInGroup(C urrentUser(), "ShipEdit") Then GroupMenu =
"frmOutsourceDB 2"
If IsUserInGroup(C urrentUser(), "ProdEdit") Then GroupMenu =
"frmOutsourceDB 3"
If IsUserInGroup(C urrentUser(), "ProdRead") Then GroupMenu =
"frmOutsourceDB 3"

End Function

Function IsUserInGroup(s trUser As String, strGroup As String) As
Boolean
'Returns True if the user is in the group.
'Example: IsUserInGroup(C urrentUser(), "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).Gro ups
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
1508
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 since there are over 20k records. Thanks, Ray
3
1553
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 compile the Access front end file in the developments PC before letting the staff copy the access file. Since two days ago, despite the access file is compiled in my development PC, the client's system complains it is not compiled. (using...
7
6911
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 datasheets (for subforms). I would like to do this on startup of the application. To be clear:
2
3188
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 on their PC's) I would like to disable some startup options programatically at runtime via VBA. I am looking for VBA code to turn off these options at application startup and turn them back on for the user when they shutdown my app:
1
4772
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 AutoCorrect", _ "Track Name AutoCorrect Info", "StartUpShowDBWindow", _ "StartUpShowStatusBar", "AllowFullMenus", "AllowBuiltInToolbars", _
7
8631
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 you entered as the event property
4
44117
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 compares the path of the opened database to a specific path (where the original database is located). This is for security reasons - I need to know if the original database has been copied without authorisation. Due to network issues I cannot use...
1
1671
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
2059
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
9705
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9575
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10320
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10073
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7609
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5513
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5645
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4288
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3806
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.