473,394 Members | 1,715 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,394 software developers and data experts.

How to Join Security Workgroup in Code

Is there some way of using vba to automate the processe of joining an
Access 97 security workgroup? I typed wrkgadm /? at a command prompt
and it just opens the gui, so I'm not sure what the parameters are for
the command or whether there really are any command line switches for
it. Thank you in advance.
Nov 12 '05 #1
7 10055
"Newbillian" <mo******@yahoo.com> wrote in message
news:d7**************************@posting.google.c om...
Is there some way of using vba to automate the processe of joining an
Access 97 security workgroup? I typed wrkgadm /? at a command prompt
and it just opens the gui, so I'm not sure what the parameters are for
the command or whether there really are any command line switches for
it. Thank you in advance.


"Joining" a workgroup makes it your default for ALL Access sessions where an
alternative is not specified as a command line parameter. That being the case it is
unusual to actually want to join anything but the default unsecured (System.mdw)
file. When you need to use an alternate workgroup for a specific database just use
the command line argument in a custom shortcut. That way you don't affect how Access
works with other files. The syntax is roughly...

"Path to MSAccess.exe" /wrkgrp "path to alternate mdw file" "path to mdb"
Nov 12 '05 #2
The problem arises on machines where users have Access 97 and XP
installed. When the user opens Access XP, 97 loses it's membership to
the network based mdw file that it was joined to earlier and defaults
to the winnt/system32/system.mdw file the next time Access 97 is
opened. I'm just trying to automate the whole gui process of the user
bringing up the dialog box and browsing to the network mdw in order to
join the workgroup and want to make some kind of batch file where the
user just clicks on a desktop icon without going through the
additional steps of joining. I can't figure out what the parameters
are to the wrkgadm.exe file. Thanks in advance for help.
"TC" <a@b.c.d> wrote in message news:<1063340385.860314@teuthos>...
The workgroup file is selected (by whatever means) *before* the database
starts to execute its startup code. So there is no way to use VBA to choose
the workgroup file that will be used for the database from which the VBA is
running.

HTH,
TC
"Newbillian" <mo******@yahoo.com> wrote in message
news:d7**************************@posting.google.c om...
Is there some way of using vba to automate the processe of joining an
Access 97 security workgroup? I typed wrkgadm /? at a command prompt
and it just opens the gui, so I'm not sure what the parameters are for
the command or whether there really are any command line switches for
it. Thank you in advance.

Nov 12 '05 #3
TC
Then you just need each PC to have a shortcut with:

"full path to msaccess.exe" /wrkgrp "full path to workgroup file" "full
path to mdb file"

Then, Access will use the specified workgroup file, regardless of which one
is the current wrkgadm.exe default.

HTH,
TC
Newbillian <mo******@yahoo.com> wrote in message
news:d7*************************@posting.google.co m...
The problem arises on machines where users have Access 97 and XP
installed. When the user opens Access XP, 97 loses it's membership to
the network based mdw file that it was joined to earlier and defaults
to the winnt/system32/system.mdw file the next time Access 97 is
opened. I'm just trying to automate the whole gui process of the user
bringing up the dialog box and browsing to the network mdw in order to
join the workgroup and want to make some kind of batch file where the
user just clicks on a desktop icon without going through the
additional steps of joining. I can't figure out what the parameters
are to the wrkgadm.exe file. Thanks in advance for help.
"TC" <a@b.c.d> wrote in message news:<1063340385.860314@teuthos>...
The workgroup file is selected (by whatever means) *before* the database
starts to execute its startup code. So there is no way to use VBA to choose the workgroup file that will be used for the database from which the VBA is running.

HTH,
TC
"Newbillian" <mo******@yahoo.com> wrote in message
news:d7**************************@posting.google.c om...
Is there some way of using vba to automate the processe of joining an
Access 97 security workgroup? I typed wrkgadm /? at a command prompt
and it just opens the gui, so I'm not sure what the parameters are for
the command or whether there really are any command line switches for
it. Thank you in advance.

Nov 12 '05 #4
"Rick Brandt" <RB*****@Hunter.Com> wrote in message news:<bj************@ID-98015.news.uni-berlin.de>...
"Newbillian" <mo******@yahoo.com> wrote in message
news:d7**************************@posting.google.c om...
Is there some way of using vba to automate the processe of joining an
Access 97 security workgroup? I typed wrkgadm /? at a command prompt
and it just opens the gui, so I'm not sure what the parameters are for
the command or whether there really are any command line switches for
it. Thank you in advance.


"Joining" a workgroup makes it your default for ALL Access sessions where an
alternative is not specified as a command line parameter. That being the case it is
unusual to actually want to join anything but the default unsecured (System.mdw)
file. When you need to use an alternate workgroup for a specific database just use
the command line argument in a custom shortcut. That way you don't affect how Access
works with other files. The syntax is roughly...

"Path to MSAccess.exe" /wrkgrp "path to alternate mdw file" "path to mdb"


What I'm really trying to ask is whether or not it is possible to make
some kind of command line batch file for joining an access workgroup
without going through the steps in the gui. I can't tell if there are
any command line switches for the wrkgadm.exe file because
"wrkgadm.exe /?" from a command prompt does not bring up any help.
Using a shortcut to an mdb file with a path to the mdw file works for
that instance of access but doesn't really join the machine
permanently to the workgroup. Is there any workaround? Thanx in
advance.
Nov 12 '05 #5
"Newbillian" <mo******@yahoo.com> wrote in message
news:d7**************************@posting.google.c om...

What I'm really trying to ask is whether or not it is possible to make
some kind of command line batch file for joining an access workgroup
without going through the steps in the gui. I can't tell if there are
any command line switches for the wrkgadm.exe file because
"wrkgadm.exe /?" from a command prompt does not bring up any help.
Using a shortcut to an mdb file with a path to the mdw file works for
that instance of access but doesn't really join the machine
permanently to the workgroup. Is there any workaround? Thanx in
advance.


Not that I'm aware of. As I stated, it is very rare for someone to actually want to
permanently join a different Workgroup, so I guess the issue just hasn't come up
before.
Nov 12 '05 #6
TC
See my other reply in this thread.

TC
"Newbillian" <mo******@yahoo.com> wrote in message
news:d7**************************@posting.google.c om...
"TC" <a@b.c.d> wrote in message news:<1063431981.92915@teuthos>...
Then you just need each PC to have a shortcut with:

"full path to msaccess.exe" /wrkgrp "full path to workgroup file" "full path to mdb file"

Then, Access will use the specified workgroup file, regardless of which one is the current wrkgadm.exe default.

HTH,
TC
Newbillian <mo******@yahoo.com> wrote in message
news:d7*************************@posting.google.co m...
The problem arises on machines where users have Access 97 and XP
installed. When the user opens Access XP, 97 loses it's membership to
the network based mdw file that it was joined to earlier and defaults
to the winnt/system32/system.mdw file the next time Access 97 is
opened. I'm just trying to automate the whole gui process of the user
bringing up the dialog box and browsing to the network mdw in order to
join the workgroup and want to make some kind of batch file where the
user just clicks on a desktop icon without going through the
additional steps of joining. I can't figure out what the parameters
are to the wrkgadm.exe file. Thanks in advance for help.
"TC" <a@b.c.d> wrote in message news:<1063340385.860314@teuthos>...
> The workgroup file is selected (by whatever means) *before* the database > starts to execute its startup code. So there is no way to use VBA to

choose
> the workgroup file that will be used for the database from which the VBA
is
> running.
>
> HTH,
> TC
>
>
> "Newbillian" <mo******@yahoo.com> wrote in message
> news:d7**************************@posting.google.c om...
> > Is there some way of using vba to automate the processe of joining

an > > Access 97 security workgroup? I typed wrkgadm /? at a command prompt > > and it just opens the gui, so I'm not sure what the parameters are for > > the command or whether there really are any command line switches for > > it. Thank you in advance.

What I'm really trying to ask is whether or not it is possible to make
some kind of command line batch file for joining an access workgroup
without going through the steps in the gui. I can't tell if there are
any command line switches for the wrkgadm.exe file because
"wrkgadm.exe /?" from a command prompt does not bring up any help.
Using a shortcut to an mdb file with a path to the mdw file works for
that instance of access but doesn't really join the machine
permanently to the workgroup. Is there any workaround? Thanx in
advance.

Nov 12 '05 #7
TC

"Newbillian" <mo******@yahoo.com> wrote in message
news:d7**************************@posting.google.c om...
"Rick Brandt" <RB*****@Hunter.Com> wrote in message news:<bj************@ID-98015.news.uni-berlin.de>...
"Newbillian" <mo******@yahoo.com> wrote in message
news:d7**************************@posting.google.c om...
Is there some way of using vba to automate the processe of joining an
Access 97 security workgroup? I typed wrkgadm /? at a command prompt
and it just opens the gui, so I'm not sure what the parameters are for
the command or whether there really are any command line switches for
it. Thank you in advance.


"Joining" a workgroup makes it your default for ALL Access sessions where an alternative is not specified as a command line parameter. That being the case it is unusual to actually want to join anything but the default unsecured (System.mdw) file. When you need to use an alternate workgroup for a specific database just use the command line argument in a custom shortcut. That way you don't affect how Access works with other files. The syntax is roughly...

"Path to MSAccess.exe" /wrkgrp "path to alternate mdw file" "path to

mdb"
What I'm really trying to ask is whether or not it is possible to make
some kind of command line batch file for joining an access workgroup
without going through the steps in the gui. I can't tell if there are
any command line switches for the wrkgadm.exe file because
"wrkgadm.exe /?" from a command prompt does not bring up any help.
Using a shortcut to an mdb file with a path to the mdw file works for
that instance of access but doesn't really join the machine
permanently to the workgroup. Is there any workaround? Thanx in
advance.


When you join a different workgroup file using wrkgadm.exe, all this really
does is to change the value of a certain key within the registry. I don't
remember which one it is, but you could easily find this by searching the
registry for occurrences of your current default workgroup filename. Then
use the win32 registry APIs, or REGEDIT files, or whatever, to update that
value as required. I'm fairly sure that nothing else is required - just
amend the registry value.

HTH,
TC

Nov 12 '05 #8

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

Similar topics

3
by: Dariusz | last post by:
I have been reading a little that you should secure your PHP code to prevent SQL injection into a database (MySQL in my instance), mainly by checking the type of data to be put into a database, and...
2
by: Mark Lees | last post by:
I want to disable the security warning box that appears when I open a DB. It asks if I want to open this file. It is annoying. I understand that I am suppose to change the macro security...
1
by: Dom | last post by:
Hi, I have a problem in getting Access 2002 to read my workgroup file. I've created different groups and users and when the db is opened the user is prompted to enter a username and password...
0
by: Mark Broadbent | last post by:
Could someone who has active experience of assigning Security Policys please clarify my follow comments... Having gone through the MSDN documentation on this subject, my condensed version of the...
2
by: Rama Sharma | last post by:
One can disassemble the code of an assembly (in say Visual C# language) complied by using Visual Studio .NET even if it is a Release build. This can be done by using the disassembler "ILDASM.EXE"...
1
by: Danko Greiner | last post by:
Thanx Willy, this was very helpful. But i also need (and want to know) how to do this from code. Can you plase give me right topic in MSDN? is there good example? Thanx p.s. this is...
28
by: Andre | last post by:
Hi, Does anyone know whether the ECMA, or an other standard document, specifies a maximum for the value that can be pass to the setTimeOut() function in Javascript? Andre
0
by: lazycoder207 | last post by:
Hi.. i wrote a basic host and plugin software ..its working fine..my doubt is whether i can in anyway restrict freedom of the plugin that i loaded while giving host full access? like if the plugin...
5
by: Lewe22 | last post by:
Once i have created a workgroup file to secure my database and prompted access to ask for a password it is asking me for a password every time i try yo open any other access database. I only want to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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,...
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
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...

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.