Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Change value in Sql field using parameters
Message
From
27/01/2003 13:07:19
 
 
General information
Forum:
ASP.NET
Category:
Forms
Miscellaneous
Thread ID:
00745559
Message ID:
00745884
Views:
19
Roland,

No, that wouldn't matter at all ... something else is going on. Have you traced your code?

~~Bonnie


>Hi Bonnie,
>
>I checked that parameters and they apper to be correct.
>Do you know if the dataadapter and dataset wizards generate code that will update fields that are in the dataset but defined with a control on the form?
>
>Thanks
>Roland
>
>=======================================================================
>
>>Roland,
>>
>>Is it possible that your parameter datatypes are not datetime?
>>
>>~~Bonnie
>>
>>
>>>Hi,
>>>
>>>Using VS Framework .net, Windows Forms and VB .net
>>>
>>>I am trying to insert a new value when a new record is inserted into the Sql Table using the following commands. The Connection and DataAdapter are created using the dataadapter wizards. Not having any problems with fields that have controls assigned to them in the form, just sql fields with not controls defined. SqlInsertCommand1 is the assigned name that shows in the property window.
>>>
>>> SqlInsertCommand1.Parameters("@DateInsert").Value = Now
>>> SqlInsertCommand1.Parameters("@DateUpdate").Value = Now
>>> SqlInsertCommand1.Parameters("@StatusDate").Value = Now
>>>
>>> Me.SqlDaListing.Update(Listing01_Ds1, "Listing")
>>>
>>>All fields except the three parameter fields above gets inserted into the sql record.
>>>
>>>What do I need to do to have these values inserted properly?
>>>
>>>Thanks
>>>Roland
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Reply
Map
View

Click here to load this message in the networking platform