D
dfeigen115
I have a table which through normal processing updates a date field to a
value entered on a form. Periodically, this date field may need to be reset
to deleted or set to NULL (preferably). This "reset" would be done via the
same form, by "deleting" the date value.
the update populating the date field (or changing it to a new date) works.
I'm unable to reset it to a "null" or blank value. In the code below,
MPMImpPlanDate is the date field that is beign reset to "null". A copy of the
update statement is below:
dim mpmimp as date
if isnull(Me.MPMImpPlanDt) then
mpmim=null
else
mpmimp = FormatDateTime(Me.MPMImpPlanDt, vbShortDate)
end if
strSQL0 = "UPDATE cacrdescription SET cacrstatus = 'implementing',
mpmimpplanwho = '" & Me.MPMImpPlanWho & "', mpmimpplandt = '" & mpmimp & "'
where (Cacrdescription.CACRNumber = " & Me.CACR_number & ");"
any suggestions/recommendations would be appreciated.
thansk, Dan
value entered on a form. Periodically, this date field may need to be reset
to deleted or set to NULL (preferably). This "reset" would be done via the
same form, by "deleting" the date value.
the update populating the date field (or changing it to a new date) works.
I'm unable to reset it to a "null" or blank value. In the code below,
MPMImpPlanDate is the date field that is beign reset to "null". A copy of the
update statement is below:
dim mpmimp as date
if isnull(Me.MPMImpPlanDt) then
mpmim=null
else
mpmimp = FormatDateTime(Me.MPMImpPlanDt, vbShortDate)
end if
strSQL0 = "UPDATE cacrdescription SET cacrstatus = 'implementing',
mpmimpplanwho = '" & Me.MPMImpPlanWho & "', mpmimpplandt = '" & mpmimp & "'
where (Cacrdescription.CACRNumber = " & Me.CACR_number & ");"
any suggestions/recommendations would be appreciated.
thansk, Dan