473,426 Members | 1,448 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,426 software developers and data experts.

Syntax for password protectd database...

Hello,

I have an ADO connection object connected to an external ms access password
protected database. I am trying to execute a delete statement from that
object on a table in my currentdb. Seems strange I know, but I have to do
it this way. My currentdb is NOT password protected. When I execute:

Delete * from table1 IN "C:\abc.mdb"

I get an "Invalid Password" error.

My ado connection object to the password protected database is already open
so I don't think it's that password, and my currentdb has no database
password so I'm a bit confused. Deos anyone know the correct syntax?

Thanks.

Matthew Wells
MW****@FirstByte.net
Dec 13 '05 #1
2 2223
I'm not the smartest guy for this one, and I've never connected to an
external database to execute a query on the local one (letting you know
up front), but here's something to at least start with:

It almost seems as though your statement is creating a new connection
to try and execute your DELETE statement. Perhaps check to make sure
you don't have more than one ADO connection object referenced?

You may also want to re-check your connection string.
http://www.connectionstrings.com has a whole buch of
syntactically-correct connection strings in different permuatations
(i.e. OLE DB connection string with password, without password, with
trusted connection, etc).

Dec 13 '05 #2
I will also be using "Insert Into 'table in local.mdb' Select * from table1
in 'password protected.mdb'". My connections strings are fine. I have an
ado connection open for my local mdb, it's the syntax to select from the
password protected mdb that's got me stuck.

"Steve" <th*********@gmail.com> wrote in message
news:11**********************@g49g2000cwa.googlegr oups.com...
I'm not the smartest guy for this one, and I've never connected to an
external database to execute a query on the local one (letting you know
up front), but here's something to at least start with:

It almost seems as though your statement is creating a new connection
to try and execute your DELETE statement. Perhaps check to make sure
you don't have more than one ADO connection object referenced?

You may also want to re-check your connection string.
http://www.connectionstrings.com has a whole buch of
syntactically-correct connection strings in different permuatations
(i.e. OLE DB connection string with password, without password, with
trusted connection, etc).

Dec 15 '05 #3

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

Similar topics

2
by: Karunakararao | last post by:
Hi All I'm using sybase database, I have a binary datatype column in a table, when I'm trying to store the char(128) value into that, I'm getting syntax violation error. If I take "w" as the...
0
by: roamnet | last post by:
hi i created database file with .mdf extention ,sql server as a source and use grid view to display data there're no problem in data retrieve and display,but i want to edit it or insert new...
2
by: sharmilah | last post by:
I have the following code in my script and it's giving a syntax error at line *** when using the password function. My password in the mysql database is encrypted using the password function itself...
6
by: ewpatton | last post by:
Good day, I've been trying to work with SQL and an Access database in order to handle custom user profiles. I haven't had any trouble reading from my database, but inserting new entries into...
3
by: basswhizz | last post by:
Hi everyone im a high school student and I'm having trouble with one of my projects could you please help!! I'm getting this error message. Parse error: syntax error, unexpected...
1
by: basswhizz | last post by:
Hi guys im having trouble with somethings else now can you help out thanks!! Im getting this error message Parse error: syntax error, unexpected $end Here's my code cheers!!] <?php //...
10
by: goodguyjam | last post by:
Hi again. I now get the above error with the exact same code as in my previous question. All I did was to rearrange the lines...no code changes...help! To assist you experts, line 11 contains this...
6
by: goodguyjam | last post by:
Hi all, I'm having trouble with mysql. I've just finished my php coding for HTTP authentication and with some help am now getting a login window pop up whenever I click on a link on my website...
4
by: nerd4access | last post by:
Hello all! I am not new to access, but new to coding (and posting). I have a database that I have created and need some help with a login form. When a user opens the database, a form pops up...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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,...
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
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...
0
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: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.