Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Update VFP EMPTY Dates from ADO.net
Message
General information
Forum:
ASP.NET
Category:
ADO.NET
Miscellaneous
Thread ID:
00892754
Message ID:
00892841
Views:
27
>How do you update a fox table with an empty date from dotnet?
>
>Can you do it with parameters, or do you have to build up the insert string?
>
>
>OleDbCommand cmd = new OleDbCommand("UPDATE myTable SET myDate = ? WHERE id = ?",myConn);
>OleDbParameter p = cmd.Parameters.Add("?myDate",OleDbType.Date);
>//p.Value = //What should this be?
>
>or
>
>OleDbCommand cmd = new OleDbCommand("UPDATE myTable SET myDate = {} WHERE id = 1",myConn);
>
>
>I would rather use parameters if there is a way.

Would this work for you? (vb.net)

p.value=DBNull.Value

franco
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform