Solved

Access 2003 Password

Posted on 2006-10-19
7
210 Views
Last Modified: 2008-01-09
Hi all,

The original file was something other thank Access 2003, but the computer is now operating the 2003 version.  

Anyway, I need to get into a backend that has been secured.  The person that did the securing doesn't know the password anymore...so...  

I have access to the data, as this is just the backend, and the tables are linked to my frontend.  The password is not a user level password, but rather the startup password.  I tried some of the VBA solutions on here for Jet 3.0 or 3.5, and they returned incorrect strings, as was confirmed by creating a new database with a known password to test with.

I suppose if it comes down to it I will just copy the tables from the frontend into a new database, and start over, but that is a pain, and time consuming.  All this just so I can add a primary key onto a table that should already have one!

G  

PS> If there is any way to add that primary key without opening the backend database, that will suffice.  High points due to difficulty and urgency.
0
Comment
Question by:graysoc
7 Comments
 
LVL 35

Expert Comment

by:Raynard7
ID: 17770160
Hi,

I do not know about the password issue - but you should be able to run the query

ALTER TABLE "Products" ADD PRIMARY KEY("ProductID");

where your table is called Products and the key field is "ProductID" (you can add multiple fields for the key after the brackets)
0
 
LVL 1

Author Comment

by:graysoc
ID: 17770189
Ah, I thought you had it man..

"Cannot execute data definition statements on linked data sources"

Any other ideas?

G
0
 
LVL 119

Expert Comment

by:Rey Obrero
ID: 17770231
<Cannot execute data definition statements on linked data sources>

you have to open the backend db

Set db = OpenDatabase(BEPath)
db.Execute "ALTER TABLE TableName ADD PRIMARY KEY FIELDNAME"
Set db = Nothing
0
Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

 
LVL 8

Accepted Solution

by:
infolurk earned 500 total points
ID: 17770809
If the frontend database is connecting to the backend automatically, the username and password will be in the connection string. Have a look for that.
Once you have grabbed the un and pw from the connection string you should be able to login to the backend.

Cheers
Steve
0
 
LVL 8

Expert Comment

by:infolurk
ID: 17770814
Unless they specify a read only connection....
0
 
LVL 1

Author Comment

by:graysoc
ID: 17773259
infolurk, that was exactly what I needed to know.  Thank you.

G
0
 
LVL 8

Expert Comment

by:infolurk
ID: 17785683
No worries.

Steve
0

Featured Post

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Most if not all databases provide tools to filter data; even simple mail-merge programs might offer basic filtering capabilities. This is so important that, although Access has many built-in features to help the user in this task, developers often n…
In the article entitled Working with Objects – Part 1 (http://www.experts-exchange.com/Microsoft/Development/MS_Access/A_4942-Working-with-Objects-Part-1.html), you learned the basics of working with objects, properties, methods, and events. In Work…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now