Can't open secured database after moving

A

Al

I built a secured Access 2000 database on my PC and am
ready to move it onto users machines; however, I cannot
get the secured database to open on their PC's.
I created the same folders, copied both the mdb and mdw
files to the correct folders, and put the following path
in their shortcut:

"C:\Program Files\Microsoft
Office\Office\MSACCESS.EXE" "C:\Database\Security\SIR.mdb"
/WRKGRP "C:\Database\Security\Secured.mdw"

This is a split database but it works fine the way it is
organized on my PC with the same paths on the users PCs.

The error message I get is: "The command line you used to
start Microsoft Access contains an option that Microsoft
Access doesn't recognize. Exit and restart Microsoft
Access using valid command-line options."

MSACCESS.EXE is loaded in the same location as the path is
pointing to also.
What am I missing?

Thank you in advance for your help,
Al
 
C

Chris Kennedy

Hi Al,

Thank you for using the Microsoft Access Newsgroups.

You wrote:
"....put the following path in their shortcut:
"C:\Program Files\Microsoft
Office\Office\MSACCESS.EXE" "C:\Database\Security\SIR.mdb"
/WRKGRP "C:\Database\Security\Secured.mdw"

"...The error message I get is: "The command line you used to start
Microsoft Access contains an option that Microsoft Access doesn't
recognize. Exit and restart Microsoft Access using valid command-line
options."


Try this as a shortcut:
"C:\Program Files\Microsoft Office\Office\MSACCESS.EXE" /WRKGRP
"C:\Database\Security\Secured.mdw"

Do Microsoft Access open? If not, create an *.MDW file with a short name,
example

"C:\Program Files\Microsoft Office\Office\MSACCESS.EXE" /WRKGRP
"C:\Test\Test.mdw"

If that one does work and you've ensured there are no syntax errors in
yours then you might be running into issue of long file name (related to
WinMe misinterpreting spaces in long file name)

I hope this helps! If you have additional questions on this topic, please
respond back to this posting.


Regards,

Eric Butts
Microsoft Access Support

"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."
 
A

Al

I tried your first suggestion of removing the reference to
the path, "C:\Database\Security\SIR.mdb" from the target
string. Access opened fine but still will not open the
SIR.mdb file on the user's machine.
Any suggestions? Thanks...Al
-----Original Message-----
Hi Al,

Thank you for using the Microsoft Access Newsgroups.

You wrote:
"....put the following path in their shortcut:
"C:\Program Files\Microsoft
Office\Office\MSACCESS.EXE" "C:\Database\Security\SIR.mdb"
/WRKGRP "C:\Database\Security\Secured.mdw"

"...The error message I get is: "The command line you used to start
Microsoft Access contains an option that Microsoft Access doesn't
recognize. Exit and restart Microsoft Access using valid command-line
options."


Try this as a shortcut:
"C:\Program Files\Microsoft
Office\Office\MSACCESS.EXE" /WRKGRP
"C:\Database\Security\Secured.mdw"

Do Microsoft Access open? If not, create an *.MDW file with a short name,
example

"C:\Program Files\Microsoft
Office\Office\MSACCESS.EXE" /WRKGRP
 
J

Joan Wild

Al said:
I tried your first suggestion of removing the reference to
the path, "C:\Database\Security\SIR.mdb" from the target
string. Access opened fine but still will not open the
SIR.mdb file on the user's machine.
Any suggestions? Thanks...Al


What happens when you attempt to open the sir.mdb? What error message do
you get?
 
T

TC

Should the /WRKGRP be in lower case? (I don't have Access here to check)

Do you have the same drive letter (C:) on each PC?

HTH,
TC
 
D

DanK

Try this:
Load both databases where you want them.

Open the data-database and see if it runs OK. If not, then
there's the/a problem.

Then, go to your Forms Database and open it, holding down
the [Shift] key while launching it. You MAY get some
error message about it not finding table, attachments, or
whatever, just see if you can ever get into the design of
any of the forms. If not, there's the/a problem.

With the Forms database open, reattach the tables using
the linking wizard and then try opening it in view mode.
 
A

Al

When I try to open the SIR.mdb file alone, I get the
message: "You do not have the necessary permissions to use
the C:\Database\Security\SIR.mdb object..."
 
A

Al

Actually, I copied the path from my test PC, where it is
working, into a readme.txt file with instructions on how
to install the program (in case I'm hit by a bus tomorrow)
and then copied the path from that file directly into the
Target line of the shortcut on the users desktop. That
way the syntax would be exactly the same too.

The drive letters/paths are exactly the same on both PCs.
 
J

Joan Wild

That message indicates that you are not using the correct mdw file. Or you
are logging in as a user that doesn't have open permission on the database
object.
 
A

Al

That only happens if I try to open the SIR.mdb file from
Windows Explorer. If I use the desktop icon with
the .../WRKGRP... in the Target line it opens fine on my
PC.

However, setting it up on another PC with the same paths,
I get the following error message: "The command line you
used to start Microsoft Access contains an option that
Microsoft Access doesn't recognize. Exit and restart
Microsoft Access using valid command-line options."

I'm having a hard time testing some of the suggestions
above because the problem installation is at another
location.

Thank you for helping me with this.
 
J

Joan Wild

OK, then there *is* something different between your setup (where it works)
and theirs.

Are you absolutely certain that the paths are the same for msaccess.exe, the
mdw and the mdb on their computer?

How are they setting up the shortcut on the desktop?

It sounds as though they have mistyped something.
 
T

TC

(snip)
However, setting it up on another PC with the same paths,
I get the following error message: "The command line you
used to start Microsoft Access contains an option that
Microsoft Access doesn't recognize. Exit and restart
Microsoft Access using valid command-line options."


If MS Access is objecting to a command-line option, then surely:
(a) the command line is wrong (eg. mistyped), or
(b) you are using a version of Access that does not recognize that option!

I can't see any other logical explanation, apart from Access codefile
corruption - a 0.00001% chance IMO.

HTH,
TC
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top