|
-
Feb 9th, 2000, 01:57 AM
#1
Thread Starter
Frenzied Member
How about checking the length of the field and setting it to vbnull if it's zero:
if len(form.text) < 1 then form.text=vbnull
-
Feb 9th, 2000, 05:14 AM
#2
New Member
Same error occurs. It's actually returning the value of vbNull (1) in the text box. I also tried vbEmpty and that doesn't work.
-
Feb 9th, 2000, 05:51 AM
#3
Addicted Member
I am thinking in a different direction, try to examine your record updating scheme, remember that in the validate event (if you code it) cancellation could happen, and that record moves also implies update actions, see if your date-textbox has any connection to any impicite updating actions...
-
Feb 9th, 2000, 06:03 AM
#4
Thread Starter
Frenzied Member
Well, this will work but you'll have a date in the field where you wanted a null
if len(form.text) < 1 then form.text=cdate(1)
It will set the date to 12/31/1899.
-
Feb 9th, 2000, 12:10 PM
#5
New Member
I'm getting this error when update an array of text boxes on a form using the recordset.update method. The error is only occuring when I try to delete a date value. The text box allownull value is set to true. Text fields in Access are set to allow zero length strings, but there is no such option for the date/time fields. Any suggestions?
-
Feb 9th, 2000, 12:22 PM
#6
Thread Starter
Frenzied Member
Have you tried setting the "required" attribute of the date field to "N" ?
-
Feb 9th, 2000, 12:29 PM
#7
New Member
The required option is set to "No".
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|