Re: Beginning question for Access OLEDBUpdate command
- From: "Dave" <dls5678@xxxxxxxxxxxxxxxx>
- Date: Sat, 18 Nov 2006 12:44:29 -0500
Cor,
After setting up a connection, I added a data adapter from the Data tab of
the Toolbox and a wizard started.
Dave
"Cor Ligthert [MVP]" <notmyfirstname@xxxxxxxxx> wrote in message
news:OdZdPVzCHHA.4952@xxxxxxxxxxxxxxxxxxxxxxx
Dave,
With what wizard did you made this, I miss the select command that is in
my idea standard in the generated dataadapter commands.
Cor
"Dave" <dls5678@xxxxxxxxxxxxxxxx> schreef in bericht
news:ujMXFdyCHHA.204@xxxxxxxxxxxxxxxxxxxxxxx
I used the wizard in VB.NET 2003 to generate a data adapter and it created
the following update command. It seems like the WHERE clause would never
evaluate to true? Am I reading this wrong?
The member_ID is the key for the table but it looks like the 2 statements
checking the address_1 and address_2 values would only be true if no
changes were made.
Me.OleDbUpdateCommand1.CommandText = "UPDATE Member_Listing SET address_1
= ?, address_2 = ? WHERE (member_ID = ?) AND (address_1 = ? OR ? IS NULL
AND address_1 IS NULL) AND (address_2 = ? OR ? IS NULL AND address_2 IS
NULL)
Thanks for your help.
Dave
.
- Follow-Ups:
- Re: Beginning question for Access OLEDBUpdate command
- From: WenYuan Wang
- Re: Beginning question for Access OLEDBUpdate command
- From: Cor Ligthert [MVP]
- Re: Beginning question for Access OLEDBUpdate command
- References:
- Beginning question for Access OLEDBUpdate command
- From: Dave
- Re: Beginning question for Access OLEDBUpdate command
- From: Cor Ligthert [MVP]
- Beginning question for Access OLEDBUpdate command
- Prev by Date: Re: Beginning question for Access OLEDBUpdate command
- Next by Date: Re: MS Access DAO -> ADO.NET Migration
- Previous by thread: Re: Beginning question for Access OLEDBUpdate command
- Next by thread: Re: Beginning question for Access OLEDBUpdate command
- Index(es):
Relevant Pages
|