?
Solved

Access 2003 Password

Posted on 2006-10-19
7
Medium Priority
?
245 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 120

Expert Comment

by:Rey Obrero (Capricorn1)
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
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 
LVL 8

Accepted Solution

by:
infolurk earned 2000 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

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

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

This article describes two methods for creating a combo box that can be used to add new items to the row source -- one for simple lookup tables, and one for a more complex row source where the new item needs data for several fields.
This article shows how to get a list of available printers for display in a drop-down list, and then to use the selected printer to print an Access report or a Word document filled with Access data, using different syntax as needed for working with …
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Suggested Courses

764 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