Cor
Sat Nov 18 22:49:56 CST 2006
Dave,
Which version do you have, as it is 2005 did you try already this one?
http://www.vb-tips.com/dbpages.aspx?ID=1139f14a-c236-4ad7-8882-b1ed16424252
I hope this helps,
Cor
"Dave" <dls5678@community.nospam> schreef in bericht
news:uIum3kzCHHA.4016@TK2MSFTNGP02.phx.gbl...
> 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@planet.nl> wrote in message
> news:OdZdPVzCHHA.4952@TK2MSFTNGP06.phx.gbl...
>> 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@community.nospam> schreef in bericht
>> news:ujMXFdyCHHA.204@TK2MSFTNGP04.phx.gbl...
>>>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
>>>
>>
>>
>
>