Connecting Tech Pros Worldwide Forums | Help | Site Map

Append query, "invalid password"

Guest
 
Posts: n/a
#1: Nov 12 '05

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

MGFoster
Guest
 
Posts: n/a
#2: Nov 12 '05

re: Append query, "invalid password"


kuzen001@duke.edu wrote:
[color=blue]
> 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.[/color]

-----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-----

Guest
 
Posts: n/a
#3: Nov 12 '05

re: Append query, "invalid password"


MGFoster <me@privacy.com> wrote:[color=blue]
> kuzen001@duke.edu wrote:[/color]
[color=blue][color=green]
> > HAMCHEESE tries to write certain records to BREAD, but
> > is unable, and I get an error: "invalid password."[/color]
>
> 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"[/color]

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

MGFoster
Guest
 
Posts: n/a
#4: Nov 12 '05

re: Append query, "invalid password"


kuzen001@duke.edu wrote:[color=blue]
> MGFoster <me@privacy.com> wrote:
>[color=green]
>>kuzen001@duke.edu wrote:[/color]
>
>[color=green][color=darkred]
>>>HAMCHEESE tries to write certain records to BREAD, but
>>>is unable, and I get an error: "invalid password."[/color]
>>
>>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"[/color]
>
>
> 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));[/color]

-----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-----

Guest
 
Posts: n/a
#5: Nov 12 '05

re: Append query, "invalid password"


MGFoster <me@privacy.com> wrote:
[color=blue]
> 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:[/color]

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
CDB
Guest
 
Posts: n/a
#6: Nov 12 '05

re: Append query, "invalid password"


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

<kuzen001@duke.edu> wrote in message
news:c5mnmb$ucl$1@gargoyle.oit.duke.edu...[color=blue]
> MGFoster <me@privacy.com> wrote:
>[color=green]
> > 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:[/color]
>
> 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[/color]


Guest
 
Posts: n/a
#7: Nov 12 '05

re: Append query, "invalid password"


CDB <alpha@delete.wave.co.nz> wrote:[color=blue]
> I have been working on an almost identical problem; here is my solution -[/color]

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
Guest
 
Posts: n/a
#8: Nov 12 '05

re: Append query, "invalid password"


CDB <alpha@delete.wave.co.nz> wrote:[color=blue]
> FROM Contracts
> IN "" [MS Access;DATABASE=C:\....Data.mdb;PWD=.....;]
> WHERE (Contracts.ContractDate etc ;[/color]

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

Closed Thread


Similar Microsoft Access / VBA bytes