473,394 Members | 2,168 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.

Tools => Startup issues

Hi,

I am having quite a major problem with an access database. Basically,
under "Tools => Startup", there are options to disable the Menu's
(e.g. - file, tools etc), the toolbars, the main window, and in fact,
everything.

A vital database has had everything disabled, and so the menus and
windows no longer load when I open the database. This means I can't
get to the
Tools menu to edit the Startup options and reverse the problem.

Does anybody know of any way to fix this problem, or at least to
access
the tables so that the information can be copied and pasted into a new
database.

The only solution I can guess at, is maybe there are some shortcut
keys that I don't know about....

Any help will be greatfully appreciated!

many thanks,
Stu.

(queries@moon DON'TSPAMME klash.com)
Nov 13 '05 #1
4 2282
You programmatically reset the properties with the 2 functions below.

If you are able to get to the code window, and the Immediate window, than
just enter:
? ChangeProperty(CurrentDb(), "AllowBuiltinToolbars", True)

If you cannot, you can create another database, set the strDB string to the
full path to your database, and set the properties from there.

Function StartupProps(bSet As Boolean)
Dim db As DAO.Database
Dim strDB As String
Dim strPrp As String
strDB = "c:\MyPath\MyFile.mdb"
Set db = OpenDatabase(strDB)

' Application.SetOption "Track Name AutoCorrect Info", False
' Application.SetOption "Perform Name AutoCorrect", False
' Application.SetOption "Log Name AutoCorrect Changes", False

' ChangeProperty db, "StartupForm", dbText, "Customers"
' ChangeProperty db, "StartupShowDBWindow", dbBoolean, False
' ChangeProperty db, "StartupShowStatusBar", dbBoolean, False
' ChangeProperty db, "AllowBuiltinToolbars", dbBoolean, False
' ChangeProperty db, "AllowBreakIntoCode", dbBoolean, False
Call ChangeProperty(db, "AllowFullMenus", dbBoolean, bSet)
Call ChangeProperty(db, "AllowSpecialKeys", dbBoolean, bSet)
Call ChangeProperty(db, "AllowBypassKey", dbBoolean, bSet)

db.Close
Set db = Nothing
End Function

Function ChangeProperty(dbs As Database, strPropName As String, _
varPropType As Variant, varPropValue As Variant) As Integer
Dim prp As Property
Const conPropNotFoundError = 3270

On Error GoTo Change_Err
dbs.Properties(strPropName) = varPropValue
ChangeProperty = True
Debug.Print strPropName & " is " & varPropValue

Change_Bye:
Exit Function

Change_Err:
If Err = conPropNotFoundError Then ' Property not found.
Set prp = dbs.CreateProperty(strPropName, _
varPropType, varPropValue)
dbs.Properties.Append prp
Resume Next
Else
' Unknown error.
ChangeProperty = False
Resume Change_Bye
End If
End Function
--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Stuart Clark" <qu*****@moonklash.com> wrote in message'
news:e5*************************@posting.google.co m...
Hi,

I am having quite a major problem with an access database. Basically,
under "Tools => Startup", there are options to disable the Menu's
(e.g. - file, tools etc), the toolbars, the main window, and in fact,
everything.

A vital database has had everything disabled, and so the menus and
windows no longer load when I open the database. This means I can't
get to the
Tools menu to edit the Startup options and reverse the problem.

Does anybody know of any way to fix this problem, or at least to
access
the tables so that the information can be copied and pasted into a new
database.

The only solution I can guess at, is maybe there are some shortcut
keys that I don't know about....

Any help will be greatfully appreciated!

many thanks,
Stu.

(queries@moon DON'TSPAMME klash.com)

Nov 13 '05 #2
Hold shift while loading the DB, this will bypass all startup settings.

Alec Christie
alec_e_christie(at)hotmail(dot)com

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 13 '05 #3
Alan,
I inherited an application with no security in it at all.
Per this code that you submitted, I have some questions:
The database I maintain is used by 15 users, some concurrently.
ChangeProperty db, "StartupShowDBWindow", dbBoolean, False<<

Aside from hiding the container, I need to have it not available at
all the whole time the app is up and running. The f11 keystroke needs
to be disabled. As a programmer, I would like to get it via something
like CTRL+SHIFT+PageDown...can this accomplish the same task as the
more well known "F11"? I do not want the users to have accessibility
to the container at any time because they are adding tables and other
objects to it that are bloating the socks off of the .mdb size. They
are also modifying data in the raw tables which is a no-no. (I'll
build them some forms with editing in them to maintain data integrity)
How do I modify the data below to where it will do the following at
startup (and remain this way until the app is closed:

As you know, when you double click the app from Explorer and hold down
"SHIFT", you get the container.
When my app starts up, how can I check to see if:
1. they held down the Shift Key; then if they did, disable the
container.
2. set a different keystroke to raise the container later by the
programmer (ie. via "CTRL+SHIFT+A"?)

Thanks.
------------

Function StartupProps(bSet As Boolean)
Dim db As DAO.Database
Dim strDB As String
Dim strPrp As String
strDB = "c:\MyPath\MyFile.mdb"
Set db = OpenDatabase(strDB)

' Application.SetOption "Track Name AutoCorrect Info", False
' Application.SetOption "Perform Name AutoCorrect", False
' Application.SetOption "Log Name AutoCorrect Changes", False

' ChangeProperty db, "StartupForm", dbText, "Customers"
' ChangeProperty db, "StartupShowDBWindow", dbBoolean, False
' ChangeProperty db, "StartupShowStatusBar", dbBoolean, False
' ChangeProperty db, "AllowBuiltinToolbars", dbBoolean, False
' ChangeProperty db, "AllowBreakIntoCode", dbBoolean, False
Call ChangeProperty(db, "AllowFullMenus", dbBoolean, bSet)
Call ChangeProperty(db, "AllowSpecialKeys", dbBoolean, bSet)
Call ChangeProperty(db, "AllowBypassKey", dbBoolean, bSet)

db.Close
Set db = Nothing
End Function
Nov 13 '05 #4
To disable the F11, set the property "AllowSpecialKeys.

To make an alternative key combination, use an AutoKeys macro.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Irish" <rl**********@yahoo.com> wrote in message
news:13**************************@posting.google.c om...
Alan,
I inherited an application with no security in it at all.
Per this code that you submitted, I have some questions:
The database I maintain is used by 15 users, some concurrently.
ChangeProperty db, "StartupShowDBWindow", dbBoolean, False<<

Aside from hiding the container, I need to have it not available at
all the whole time the app is up and running. The f11 keystroke needs
to be disabled. As a programmer, I would like to get it via something
like CTRL+SHIFT+PageDown...can this accomplish the same task as the
more well known "F11"? I do not want the users to have accessibility
to the container at any time because they are adding tables and other
objects to it that are bloating the socks off of the .mdb size. They
are also modifying data in the raw tables which is a no-no. (I'll
build them some forms with editing in them to maintain data integrity)
How do I modify the data below to where it will do the following at
startup (and remain this way until the app is closed:

As you know, when you double click the app from Explorer and hold down
"SHIFT", you get the container.
When my app starts up, how can I check to see if:
1. they held down the Shift Key; then if they did, disable the
container.
2. set a different keystroke to raise the container later by the
programmer (ie. via "CTRL+SHIFT+A"?)

Thanks.
------------

Function StartupProps(bSet As Boolean)
Dim db As DAO.Database
Dim strDB As String
Dim strPrp As String
strDB = "c:\MyPath\MyFile.mdb"
Set db = OpenDatabase(strDB)

' Application.SetOption "Track Name AutoCorrect Info", False
' Application.SetOption "Perform Name AutoCorrect", False
' Application.SetOption "Log Name AutoCorrect Changes", False

' ChangeProperty db, "StartupForm", dbText, "Customers"
' ChangeProperty db, "StartupShowDBWindow", dbBoolean, False
' ChangeProperty db, "StartupShowStatusBar", dbBoolean, False
' ChangeProperty db, "AllowBuiltinToolbars", dbBoolean, False
' ChangeProperty db, "AllowBreakIntoCode", dbBoolean, False
Call ChangeProperty(db, "AllowFullMenus", dbBoolean, bSet)
Call ChangeProperty(db, "AllowSpecialKeys", dbBoolean, bSet)
Call ChangeProperty(db, "AllowBypassKey", dbBoolean, bSet)

db.Close
Set db = Nothing
End Function

Nov 13 '05 #5

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

Similar topics

2
by: deko | last post by:
Is it possible to set options in the Tools >> Options dialog programmatically? For example, I want to create an Access 2002 MDE that will set, on startup, various options in the View, General, and...
1
by: John Michael | last post by:
I have created some password routines to protect certain forms from access without a password. This allows me to create some security for apps that will be used on diff machines for users that...
10
by: MLH | last post by:
I am concerned. I have recently moved to A97 from Access 2.0 where I rolled out runtime apps with the ADT. Now, the Office Pro Developer's Edition with Access 97 is what I'm using. I find some...
0
by: Andrew Dowding | last post by:
Hi Everybody, I have been looking at problems with my Windows Forms C# application and it's little Jet 4 (Access) database for the last few days. The Windows Forms app implements a facade and...
5
by: peter Willis | last post by:
Hello, Is there a way to recover from the following error? I have (had) an existing database and wish not to lose the data tables. Thanks for any help, Pete
8
by: cj | last post by:
In 2003 I sometimes changed the startup object of a project to Sub Main which was found in Module1.vb. I upgraded one such project to 2005 and I notice in the properties page for the project that...
10
by: =?Utf-8?B?UmljaGFyZCBCeXNvdXRo?= | last post by:
Hi In my app I have a SplashScreen, a login form and a main form. On launching the app, I'd like to show the SplashScreen while reading config files and attempting a database connection. I show...
2
by: RLN | last post by:
Re: Access 2003 Is there a way to list via text (or set via VBA) the items in the Tools/Startup (App title, App Icon, Display Form Page, Show DB Window, etc.) as well as items in the...
3
by: =?Utf-8?B?RVF1QWw=?= | last post by:
Hi, We have an application developed in VC2005 with mixed code, primarily C++ but using a C# dll for database access (DBUploader), the dll exposes a C++ interface. We are experiencing...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...

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.