473,320 Members | 2,035 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,320 software developers and data experts.

Append query, "invalid password"


I found similiar issues in MS-KB but nothing that helped
me; got the Windows and Office updates from the MS website
but that hasn't changed the behavior of this problem, and
I don't see anything relevant in the newsgroup; help will
be gratefully received.

Windows 2000 system, I'm logged in with admin rights, using
Office 2003. I have two databases on my local drive, in
the same subdirectory. In the database HAMCHEESE, I create
an append query to write records to the db BREAD. Both of
these dbs have the same on-open password (call it MUSTARD.)

When the opening password is on, the append query from
HAMCHEESE tries to write certain records to BREAD, but
is unable, and I get an error: "invalid password."

Removing the password from BREAD lets the append query run
without problem. But we'd rather not have these dbs unprotected
and I'd rather not have to remove the pw each time I run the
query and then replace it.

Anybody? Please? TIA!

_______________________________________________
Ken Kuzenski AC4RD kuzen001 at acpub .duke .edu
_______________________________________________
All disclaimers apply, see? www.duke.edu/~kuzen001
Nov 12 '05 #1
7 4219
ku******@duke.edu wrote:
I found similiar issues in MS-KB but nothing that helped
me; got the Windows and Office updates from the MS website
but that hasn't changed the behavior of this problem, and
I don't see anything relevant in the newsgroup; help will
be gratefully received.

Windows 2000 system, I'm logged in with admin rights, using
Office 2003. I have two databases on my local drive, in
the same subdirectory. In the database HAMCHEESE, I create
an append query to write records to the db BREAD. Both of
these dbs have the same on-open password (call it MUSTARD.)

When the opening password is on, the append query from
HAMCHEESE tries to write certain records to BREAD, but
is unable, and I get an error: "invalid password."

Removing the password from BREAD lets the append query run
without problem. But we'd rather not have these dbs unprotected
and I'd rather not have to remove the pw each time I run the
query and then replace it.


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Not sure about this, but I believe you can include the password in the
query like this:

UPDATE TableName In "C:\My Documents\myDB.mdb;PWD=password"
SET ColumnName = NewValue
WHERE <criteria>
--
MGFoster:::mgf00 <at> earthlink <decimal-point> net
Oakland, CA (USA)

-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQA/AwUBQH2aoIechKqOuFEgEQJlMQCfY97adUBabIxPgnyCGYUnJI mucbkAn11H
8SG3g568esrge1+tKKbVyjd2
=KYK9
-----END PGP SIGNATURE-----

Nov 12 '05 #2
MGFoster <me@privacy.com> wrote:
ku******@duke.edu wrote:

HAMCHEESE tries to write certain records to BREAD, but
is unable, and I get an error: "invalid password."


Not sure about this, but I believe you can include the password in the
query like this:
UPDATE TableName In "C:\My Documents\myDB.mdb;PWD=password"


Thanks, MG, but I'm including it already; Access generated
this syntax so I've been assuming it's correct:

INSERT INTO [;PWD=mustard].tblPFTs ( MRN, TestDate, FVC, FEV1, TLC, FRC,
Unc_DLCO, DLCO, Pct_FVC, Pct_FEV1, Pct_TLC, Pct_FRC, Pct_Unc_DLCO,
Pct_DLCO, VA, Hgb, Done_at, PFT_note, Includeme, AddedBy ) IN
'C:\REFRIGERATOR\BREAD.mdb'[;PWD=mustard]
SELECT [TBLNames].MRN, [TblPFTs].TestDate, [TblPFTs].FVC, [TblPFTs].FEV1,
[TblPFTs].TLC, [TblPFTs].FRC, [TblPFTs].Unc_DLCO, [TblPFTs].DLCO,
[TblPFTs].Pct_FVC, [TblPFTs].Pct_FEV1, [TblPFTs].Pct_TLC,
[TblPFTs].Pct_FRC, [TblPFTs].Pct_Unc_DLCO, [TblPFTs].Pct_DLCO,
[TblPFTs].VA, [TblPFTs].Hgb, [TblPFTs].Done_at, [TblPFTs].PFT_note,
[TblPFTs].Includeme, "App qry" AS Expr1
FROM [TBLNames] LEFT JOIN [TblPFTs] ON [TBLNames].Pat_ID =
[TblPFTs].Pat_ID
WHERE ((([TblPFTs].Exportme)=True));
_______________________________________________
Ken Kuzenski AC4RD kuzen001 at acpub .duke .edu
_______________________________________________
All disclaimers apply, see? www.duke.edu/~kuzen001

Nov 12 '05 #3
ku******@duke.edu wrote:
MGFoster <me@privacy.com> wrote:
ku******@duke.edu wrote:


HAMCHEESE tries to write certain records to BREAD, but
is unable, and I get an error: "invalid password."


Not sure about this, but I believe you can include the password in the
query like this:
UPDATE TableName In "C:\My Documents\myDB.mdb;PWD=password"

Thanks, MG, but I'm including it already; Access generated
this syntax so I've been assuming it's correct:

INSERT INTO [;PWD=mustard].tblPFTs ( MRN, TestDate, FVC, FEV1, TLC, FRC,
Unc_DLCO, DLCO, Pct_FVC, Pct_FEV1, Pct_TLC, Pct_FRC, Pct_Unc_DLCO,
Pct_DLCO, VA, Hgb, Done_at, PFT_note, Includeme, AddedBy ) IN
'C:\REFRIGERATOR\BREAD.mdb'[;PWD=mustard]
SELECT [TBLNames].MRN, [TblPFTs].TestDate, [TblPFTs].FVC, [TblPFTs].FEV1,
[TblPFTs].TLC, [TblPFTs].FRC, [TblPFTs].Unc_DLCO, [TblPFTs].DLCO,
[TblPFTs].Pct_FVC, [TblPFTs].Pct_FEV1, [TblPFTs].Pct_TLC,
[TblPFTs].Pct_FRC, [TblPFTs].Pct_Unc_DLCO, [TblPFTs].Pct_DLCO,
[TblPFTs].VA, [TblPFTs].Hgb, [TblPFTs].Done_at, [TblPFTs].PFT_note,
[TblPFTs].Includeme, "App qry" AS Expr1
FROM [TBLNames] LEFT JOIN [TblPFTs] ON [TBLNames].Pat_ID =
[TblPFTs].Pat_ID
WHERE ((([TblPFTs].Exportme)=True));


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

That looks incorrect. It looks as if the string ";PWD=mustard" has been
defined as a table! I'd change the INSERT INTO clause to this:

INSERT INTO tblPFTs IN "C:\REFRIGERATOR\BREAD.mdb;PWD=mustard"
( MRN, TestDate, FVC, FEV1, TLC, FRC, Unc_DLCO, DLCO, Pct_FVC, Pct_FEV1,
Pct_TLC, Pct_FRC, Pct_Unc_DLCO, Pct_DLCO, VA, Hgb, Done_at, PFT_note,
Includeme, AddedBy )

--
MGFoster:::mgf00 <at> earthlink <decimal-point> net
Oakland, CA (USA)

-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQA/AwUBQH7cKYechKqOuFEgEQJUtQCfVp3z5WJ2VNFYmOW2HSKTfv FQ+A4AoJNq
3TYdvnmax/y8fsMACZizQsUF
=v/iM
-----END PGP SIGNATURE-----

Nov 12 '05 #4
MGFoster <me@privacy.com> wrote:
That looks incorrect. It looks as if the string ";PWD=mustard" has been
defined as a table! I'd change the INSERT INTO clause to this:


THank you very much, MG! I assumed that the string
that Access generated would be correct--I'll give this
a try in the morning. Thanks!

--Ken
_______________________________________________
Ken Kuzenski AC4RD kuzen001 at acpub .duke .edu
_______________________________________________
All disclaimers apply, see? www.duke.edu/~kuzen001
Nov 12 '05 #5
CDB
I have been working on an almost identical problem; here is my solution -

SELECT Count(Contracts.ContractNo) AS UnitsSold
FROM Contracts
IN "" [MS Access;DATABASE=C:\....Data.mdb;PWD=.....;]
WHERE (Contracts.ContractDate etc ;

This format is one of several in the IN Clause Help, but it was not clear
that it applied to the above situation.

Clive

<ku******@duke.edu> wrote in message
news:c5**********@gargoyle.oit.duke.edu...
MGFoster <me@privacy.com> wrote:
That looks incorrect. It looks as if the string ";PWD=mustard" has been
defined as a table! I'd change the INSERT INTO clause to this:


THank you very much, MG! I assumed that the string
that Access generated would be correct--I'll give this
a try in the morning. Thanks!

--Ken
_______________________________________________
Ken Kuzenski AC4RD kuzen001 at acpub .duke .edu
_______________________________________________
All disclaimers apply, see? www.duke.edu/~kuzen001

Nov 12 '05 #6
CDB <al***@delete.wave.co.nz> wrote:
I have been working on an almost identical problem; here is my solution -


Clive, thanks so much! That's two things to try
this morning--I appreciate it!
_______________________________________________
Ken Kuzenski AC4RD kuzen001 at acpub .duke .edu
_______________________________________________
All disclaimers apply, see? www.duke.edu/~kuzen001
Nov 12 '05 #7
CDB <al***@delete.wave.co.nz> wrote:
FROM Contracts
IN "" [MS Access;DATABASE=C:\....Data.mdb;PWD=.....;]
WHERE (Contracts.ContractDate etc ;


I tried this version first and it works perfectly.

Many, many thanks to Clive and MG for the help!

I know now that I can't depend on syntax to be correct
just because Access generates it. :->

THANKS!

--Ken

_______________________________________________
Ken Kuzenski AC4RD kuzen001 at acpub .duke .edu
_______________________________________________
All disclaimers apply, see? www.duke.edu/~kuzen001

Nov 12 '05 #8

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

Similar topics

7
by: | last post by:
I found similiar issues in MS-KB but nothing that helped me; got the Windows and Office updates from the MS website but that hasn't changed the behavior of this problem, and I don't see anything...
7
by: Dica | last post by:
i've used the sample code from msdn to create an encyption/decryption assembly as found here: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetsec/html/SecNetHT10.asp i'm...
0
by: Winterminute | last post by:
I am trying to read a list of install programs using WMI with ASP.NET/C#. However, it fails with "Invalid Class". I have confirmed that if I query LOCALHOST then it works fine, but if I query a...
0
by: Simon Harris | last post by:
I'm trying to access a password protected web service. My code is as follows: Dim BS7666 As New bs7666.BS7666 'New instance of my web service Dim CredCache As CredentialCache = New...
1
by: Java Guy | last post by:
I'm trying to view a web page. IE tells me there are (Java?) errors on the page. Here they are: Line: 15 Char: 7 Error: Wrong number of arguments or invalid propert assignment Code: 0 URL:...
0
by: FrankieBakerJr | last post by:
Hello all I have an ASP.NET 2003 application (running Windows XP) that allows user to change and reset their Active Directory password. I'm using an admin account to query and reset the passwords...
3
by: groupie | last post by:
Hi, I'd like to know how to implement the "Forgot Password" feature on many websites which require a login, exactly like this ebay example:...
2
by: Kerem Gümrükcü | last post by:
Hi, i have a Process.Start call that fails with 267 Error Code if invoked with another user and password other than the applications user. It is a ordinary piece of code just create a Process...
2
by: lai.love.chen | last post by:
I encounted this error when i restored database. but the usename and password is right.
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.