Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Startup Properties Help

6 views
Skip to first unread message

pdtay84

unread,
Oct 13, 2007, 10:57:09 AM10/13/07
to
Having some trouble with an unfinished database. I'm a moderate user,
not a beginner, but I'm training myself more advanced options. I have
an unfinished database that I set the startup properties to disable
all the menus (oops.) How can I get back in to edit the database. I
read somewhere pressing F11 will bring up the menu but it does nothing.

Rick Brandt

unread,
Oct 13, 2007, 10:58:12 AM10/13/07
to

Hold shift while opening the file.

(F11 is one of the things you disabled)

--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com


Larry Linson

unread,
Oct 13, 2007, 4:06:02 PM10/13/07
to
To add to Rick's comments: You can disable the Shift option, too, and then
you could be "up the proverbial creek." It is always a good idea to save a
development copy without the "finishing touches" added, and set the Startup
properties on a copy just before you distribute it.

Of course, you'll have separated that "front end" copy from the "back end"
containing tables, relationships, and data and linked the back end tables to
the front end, so if you update, test, finish, and distribute a new copy of
the front end, you will not lose your data.

Larry Linson
Microsoft Access MVP

"Rick Brandt" <rickb...@hotmail.com> wrote in message
news:825Qi.43937$RX.4...@newssvr11.news.prodigy.net...

lyle fairfield

unread,
Oct 13, 2007, 5:50:09 PM10/13/07
to
"Larry Linson" <bou...@localhost.not> wrote in
news:Ky9Qi.1379$2o1.974@trnddc03:

> To add to Rick's comments: You can disable the Shift option, too, and
> then you could be "up the proverbial creek."

Larry

I think this can be used as a paddle by running it from another Access
application:

Public Sub ResetStartProperties(ByVal FullPathToApplication$)
' I found this to be difficult
' and not well-documented.
' if you can make it simpler,
' please, tell me and the world
Dim a As Access.Application
Dim aProperties(0 To 9, 0 To 1)
Dim pa As AccessObjectProperty
Dim z&
aProperties(0, 0) = "AllowBuiltInToolbars"
aProperties(1, 0) = "AllowByPassKey"
aProperties(2, 0) = "AllowFullMenus"
aProperties(3, 0) = "AllowShortCutMenus"
aProperties(4, 0) = "AllowSpecialKeys"
aProperties(5, 0) = "AllowToolbarChanges"
aProperties(6, 0) = "StartUpShowDBWindow"
aProperties(7, 0) = "StartUpShowStatusBar"
aProperties(8, 0) = "StartUpMenuBar"
aProperties(9, 0) = "StartUpShortcutMenuBar"
For z = 0 To 7
aProperties(z, 1) = True
Next z
For z = 8 To 9
aProperties(z, 1) = vbNullString
Next z
Set a = New Access.Application
With a
.OpenCurrentDatabase FullPathToApplication, True
On Error Resume Next
For z = 0 To 9
With .CurrentDb.Properties
.Delete aProperties(z, 0)
.Refresh
End With
With .CurrentProject.Properties
Set pa = .Item(aProperties(z, 0))
.Remove pa
pa.Value = aProperties(z, 1)
End With
Next z
On Error GoTo 0
.CloseCurrentDatabase
.Quit
End With
End Sub

Private Sub testMDB()
ResetStartProperties "C:\Documents and Settings\Lyle Fairfield\My
Documents\Access\northwind.mdb"
End Sub

Private Sub testADP()
ResetStartProperties "C:\Documents and Settings\Lyle Fairfield\My
Documents\Access\terraware.adp"
End Sub

--
lyle fairfield

Stuart McCall

unread,
Oct 13, 2007, 6:30:09 PM10/13/07
to
"lyle fairfield" <lyle...@yahoo.ca> wrote in message
news:l4bQi.8540$9F1....@read1.cgocable.net...

Nice routine. Just to satisfy my curiosity, why do you do this bit:

> With .CurrentDb.Properties
> .Delete aProperties(z, 0)
> .Refresh
> End With

and this:

> .Remove pa

when you're overwriting them all anyway?


Larry Linson

unread,
Oct 13, 2007, 6:37:58 PM10/13/07
to
Thanks, Lyle. Is "paddle" the correct word, not "shovel"? Larry

I keep a separate development copy of each application as a matter of course
(even for my own single-user databases), so putting the "finishing touches"
on a copy of them when it's time to distribute is no great burden.

Larry

"lyle fairfield" <lyle...@yahoo.ca> wrote in message
news:l4bQi.8540$9F1....@read1.cgocable.net...

lyle fairfield

unread,
Oct 14, 2007, 1:17:43 AM10/14/07
to
"Stuart McCall" <smc...@myunrealbox.com> wrote in
news:fergva$lup$1$8300...@news.demon.co.uk:

There's not much documentation about these, and testing the existence
and value of these properties is tedious.So I'm doing everything I can
to be sure they are the way I want them, even though some it is likely
to be redundant.

--
lyle fairfield

Stuart McCall

unread,
Oct 14, 2007, 5:41:00 AM10/14/07
to
"lyle fairfield" <lyle...@yahoo.ca> wrote in message
news:XDhQi.7810$xa2....@read2.cgocable.net...

<SNIP>


> There's not much documentation about these, and testing the existence
> and value of these properties is tedious.So I'm doing everything I can
> to be sure they are the way I want them, even though some it is likely
> to be redundant.
>
> --
> lyle fairfield

Understood. Thanks.


Stuart McCall

unread,
Oct 14, 2007, 5:50:34 AM10/14/07
to
"lyle fairfield" <lyle...@yahoo.ca> wrote in message
news:XDhQi.7810$xa2....@read2.cgocable.net...

I see. Just wondered. Thanks.


Larry Linson

unread,
Oct 14, 2007, 5:01:27 PM10/14/07
to
"lyle fairfield" <lyle...@yahoo.ca> wrote

> Larry
>
> I think this can be used as a paddle by running it from another Access
> application:

But, even though re-adding finishing touches at distribution time is no
burden for me, I appreciate your advice and your code, which I have copied
for future use, if/when needed... and I sometimes do, if I inherit a
"tightly secured" database that a previous contractor secured for (from?) a
client.

Larry


0 new messages