G
Guest
--------------------------------------------------------------------------------
Hi Everyone,
I am creating an application in ms access 2000. I have form with unbound
fields and I wrote a vb routine to post the data on the form to their
respective fields in the corresponding table. That table has two fields of
type DateTime: EndDate and EndTime. As information for those two fields are
not mandatory, I wrote the following code that will basically put a zero
length string in both fields if no value had been entered in both textboxes
on the form:
txbEndDate = IIf(IsNull(txbEndDate), "", txbEndDate)
txbEndTime = IIf(IsNull(txbEndTime), "", txbEndTime)
The following line code assign the values of the text boxes to the fields:
rst!EndDate=txbEndDate
rst!EndTime=txbEndTime
Whe I run the code, I get the error message :"Multiple steps operation
generated errors. Check each status value." Basically that means the date
field cannot accepted the zero length string. Is there any turn around?
Thanks to all of you for your help.
Hi Everyone,
I am creating an application in ms access 2000. I have form with unbound
fields and I wrote a vb routine to post the data on the form to their
respective fields in the corresponding table. That table has two fields of
type DateTime: EndDate and EndTime. As information for those two fields are
not mandatory, I wrote the following code that will basically put a zero
length string in both fields if no value had been entered in both textboxes
on the form:
txbEndDate = IIf(IsNull(txbEndDate), "", txbEndDate)
txbEndTime = IIf(IsNull(txbEndTime), "", txbEndTime)
The following line code assign the values of the text boxes to the fields:
rst!EndDate=txbEndDate
rst!EndTime=txbEndTime
Whe I run the code, I get the error message :"Multiple steps operation
generated errors. Check each status value." Basically that means the date
field cannot accepted the zero length string. Is there any turn around?
Thanks to all of you for your help.