Hi, Earl.
I think I changed an Access
setting that disabled the right-click capability because it occurred after
I
was experimenting with things at Tools > Options.
Select the Tools -> Startup... menu to open the Startup dialog window.
Ensure that the "Allow Default Shortcut menus" checkbox is checked. If you
change this setting, then select the "OK" button to close the dialog window,
then close Access. Open the database again and your new setting will take
effect.
I am not sure how to determine
whether is was opened in read-only mode, whether there was a command line
switch or a Windows setting causing the problem.
I think fixing your default shortcut menus will solve the problem, but I can
explain the other mysteries about opening read-only databases for you. With
a command-line switch to open the file in read-only mode, a Windows
shortcut, or the command line (Start -> Run), or a VBA procedure using the
Shell command would be used to open the database. The read-only
command-line switch is /ro and the complete command would look like the
following:
"C:\Program Files\Microsoft\Office03\OFFICE11\MSACCESS.EXE"
"C:\Work\MyDB.mdb" /ro
If it's a Windows file attribute that makes the file read-only, then open
Windows Explorer and navigate to the file. Right-click and select
"Properties" on the pop-up menu to open the Properties dialog window. If
the Read-only Attribute check box should be unchecked.
If it's a Windows security setting that makes the file read-only, then
select the Security tab and check your security settings on the Properties
dialog window. If only "Read" is selected for your user name, then you
won't have any other permissions, such as modify or write, which is what you
need to make changes to the database file.
I understand mainframe and C programming
but I am a newby to VBA and the more involved portions of VB6.
Then you will find many new ways to shoot yourself in the foot. ;-) For an
amusing perspective on VB programming from a C programmer's point of view,
please see the following Web page for a link to Verity Stob's article,
"Thirteen Ways To Loathe VB":
http://www.Access.QBuilt.com/html/articles.html
Cool!
HTH.
Gunny
See
http://www.QBuilt.com for all your database needs.
See
http://www.Access.QBuilt.com for Microsoft Access tips and tutorials.
http://www.Access.QBuilt.com/html/expert_contributors2.html for contact
info.