![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi All, Can anyone direct me or provide advice on how I can assign a null value to a date variable in vb.net. Basically what I'm doing is that I'm looping through a recordset where I have three date fields that may or maynot have date values, if no date values exists in the source field, the value is null. but when I pass a record from the recordset to SQL command parameter query for record insertion into a different table, the date values that are blank are inserting a date stamp of 00/00/1900 00:00:00 into my destination table. So is there anyway that I can assign a null value to vb.net date variable so that when the date field is blank a null value is inserted by my SQL insert statment. many thanks, Liamo |
#3
| |||
| |||
|
|
Hi All, Can anyone direct me or provide advice on how I can assign a null value to a date variable in vb.net. Basically what I'm doing is that I'm looping through a recordset where I have three date fields that may or maynot have date values, if no date values exists in the source field, the value is null. but when I pass a record from the recordset to SQL command parameter query for record insertion into a different table, the date values that are blank are inserting a date stamp of 00/00/1900 00:00:00 into my destination table. So is there anyway that I can assign a null value to vb.net date variable so that when the date field is blank a null value is inserted by my SQL insert statment. many thanks, Liamo |
#4
| |||
| |||
|
#5
| |||
| |||
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |