I am using VB 6.0 and an Access 2000 database with ADO.
I am getting the error "Mutiple step operation genterated errors. Check each status value" when I try to enter a Null value in a date datatype field. I have the Field set to Not required.
How do I allow my users to clear a date?
Here is a sample of the code I am using:
rsAccess!TERMDT = text(15).text
rsAccess.Update
It was suggested that I try:
rsAccess!TERMDT = IIf(IsDate(Text(15).Text), CDate(Text(15).Text), vbNull)
but then I get the error "Type mismatch"
I even added the # but still same error
rsAccess!Hire = "#" & IIf(IsDate(Text(a%).Text), CDate(Text(a%).Text), vbNull) & "#"
Any ideas?
Thanks
Catrina
I am getting the error "Mutiple step operation genterated errors. Check each status value" when I try to enter a Null value in a date datatype field. I have the Field set to Not required.
How do I allow my users to clear a date?
Here is a sample of the code I am using:
rsAccess!TERMDT = text(15).text
rsAccess.Update
It was suggested that I try:
rsAccess!TERMDT = IIf(IsDate(Text(15).Text), CDate(Text(15).Text), vbNull)
but then I get the error "Type mismatch"
I even added the # but still same error
rsAccess!Hire = "#" & IIf(IsDate(Text(a%).Text), CDate(Text(a%).Text), vbNull) & "#"
Any ideas?
Thanks
Catrina