473,471 Members | 1,937 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Locked out of old mdb...help

Hi

I just tried to open an old mdb. I get the first form up but can't bypass
this with F11. At some time in the past I must have turned off special keys
so F11 for the Database window doesn't work. There is a custom menu and no
toolbar.

How can I get to the database window and Startup options? I have tried
several shortcut keys without success.

Jeff
Nov 13 '05 #1
2 2070
> I just tried to open an old mdb. I get the first form up but can't bypass
this with F11. At some time in the past I must have turned off special keys
so F11 for the Database window doesn't work. There is a custom menu and no
toolbar.

How can I get to the database window and Startup options? I have tried
several shortcut keys without success.


I have done this only to set the properties to FALSE, but surely the
procedure will work to set them to TRUE?

OTTOMH Code (assumes a "this century" version of Access)

standard module in another MDB

Dim App As Access.Application
Set App = New Access.Application
With App
.OpenCurrentDatabase FullPathToOldMDB 'in quotation marks if literal
With .CurrentProject.Properties
On Error Resume Nest
.Item("AllowByPassKey").Value = True
.Item("AllowSpecialKeys").Value = True
On Error Goto 0
End With
.CloseCurrentDatabase
.Quit
End With
If Not App Is Nothing Then Set App = Nothing

--
Lyle Fairfield
Nov 13 '05 #2
Thanks Lyle

The code you gave generated an error when accessing the properties. But I
took the idea and changed is so I opened the database using the syntax

Set db = DBEngine.Workspaces(0).OpenDatabase("database path and name")

and referenced the properties like db.Properties("AllowBypassKey") and it
worked a charm.

Jeff

"Lyle Fairfield" <ly***********@aim.com> wrote in message
news:43**************@aim.com...
I just tried to open an old mdb. I get the first form up but can't bypass
this with F11. At some time in the past I must have turned off special
keys so F11 for the Database window doesn't work. There is a custom menu
and no toolbar.

How can I get to the database window and Startup options? I have tried
several shortcut keys without success.


I have done this only to set the properties to FALSE, but surely the
procedure will work to set them to TRUE?

OTTOMH Code (assumes a "this century" version of Access)

standard module in another MDB

Dim App As Access.Application
Set App = New Access.Application
With App
.OpenCurrentDatabase FullPathToOldMDB 'in quotation marks if literal
With .CurrentProject.Properties
On Error Resume Nest
.Item("AllowByPassKey").Value = True
.Item("AllowSpecialKeys").Value = True
On Error Goto 0
End With
.CloseCurrentDatabase
.Quit
End With
If Not App Is Nothing Then Set App = Nothing

--
Lyle Fairfield

Nov 13 '05 #3

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

Similar topics

0
by: Neil | last post by:
Hi, I posted this on the dotnet.framework newgroup, but no one replied, so I thought maybe this newsgroup might help. I'm writing a file utility and would like my program to at least try to...
1
by: Mel Apiso | last post by:
Hi, I want to know if I can detect exactly what row table is locked. My application is locked and I get valuable information (table, application, lock mode...) with "get snapshot for locks..."...
6
by: DebbieG | last post by:
I have created a database for a client and was told that it was to be a one-user database. Well, you know the next statement ... now they want 3 people to be able to use the database. (FYI, I...
1
by: Rolan | last post by:
Having tried various permutations of Before Update and well for that matter, After Update, OnExit, OnEnter, etc. and also Locked controls, I'm still unable to obtain the intended results. There are...
4
by: hkappleorange | last post by:
I ued this code to connect to a mdb file A = New OleDbConnection( "PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA Source=C:\Inetpub\wwwroot\ASPX\Authors.mdb" )
7
by: Andrea Moro | last post by:
I'm writing my first windows control library. A simple textbox with some numeric facilities. Well, there is a strange thing that happen. I want to add a locked property. As many other property,...
4
by: kafi | last post by:
Hi All; I am trying to find a way to make my locked control more visible on a web form. When I lock a control and display it on a web form (ASP.NET) the control is barely visible and it is hard...
8
by: kevin.vaughan | last post by:
Good Afternoon Everyone, Could someone please explain why I can't set the Subform control Visible attribute to False as below? The statement for the locked attributes work but not for the...
6
by: ljstern | last post by:
Hello. I am using MS Access 2003 with XP/pro. I have a form that has the following properties set through the property sheet: form: AllowAdditions = False CartridgeID field: Locked = True ...
1
by: Damjan Malis | last post by:
Hi guys... could anyone please help me with my problem getting mouse cursor position while desktop being locked (WIN + L). MSDN says: "The input desktop must be the current desktop when you...
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
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...
1
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.