Re: Updating record in an Access 2000 db using ADO
From: Val Mazur (group51a_at_hotmail.com)
Date: 05/26/04
- Next message: Val Mazur: "Re: MDAC JET 4.0 (How about a MERGE MODULE for this?)"
- Previous message: Val Mazur: "Re: search all word begin "an*""
- In reply to: MADMAX: "Updating record in an Access 2000 db using ADO"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 25 May 2004 21:09:09 -0400
Hi,
I do not think first query would be a valid one. What is your full code,
which executes this query and what are you trying to achieve here?
-- Val Mazur Microsoft MVP "MADMAX" <anonymous@discussions.microsoft.com> wrote in message news:A5557D49-0C10-47BA-941B-809B91383A7C@microsoft.com... > Hi guys, > > I'm trying to update a record in a Access database. The db is opened via > an UDL file. > [oledb] > ; Everything after this line is an OLE DB initstring > Provider=Microsoft.Jet.OLEDB.4.0;Data > Source=C:\TestDB.mdb;Mode=ReadWrite;Persist Security Info=False > > I'm using a command object with text command (adCmdText) > > strSQL="Parameters [Logname] Text, [UserPassword] Text, [Name] Text; " & _ > "UPDATE Users SET USERPASSWORD = [UserPassword], NAME = [Name] " > & _ > "WHERE LOGNAME = [Logname] ;" > > and if I use parameters I got the following message: > "Operation must use an updateable query." > > All goes fine if I don't use parameters: > strSQL = "UPDATE Users SET USERPASSWORD = '" & Password & "' , NAME = '" & > name & "' " & _ > "WHERE LOGNAME = '" & logname & "' ;" > > What's going on ? I would like to use parameters since they guarantee a > better control on input. > > How good is the Jet Provider ? Things that worked smoth with SQLServer or > Oracle, are forcing > me to dig into MSDN to make them work... > > THX for your kind reply. > > Max
- Next message: Val Mazur: "Re: MDAC JET 4.0 (How about a MERGE MODULE for this?)"
- Previous message: Val Mazur: "Re: search all word begin "an*""
- In reply to: MADMAX: "Updating record in an Access 2000 db using ADO"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|