Results 1 to 7 of 7

Thread: This action was cancelled by an associated object

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Aug 1999
    Location
    Santa Clara, Ca , 95058
    Posts
    1,105

    Post

    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

  2. #2
    New Member
    Join Date
    Feb 2000
    Location
    Houma, LA, USA
    Posts
    3

    Post

    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.

  3. #3
    Addicted Member pardede's Avatar
    Join Date
    Jan 2000
    Posts
    232

    Post

    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...

  4. #4

    Thread Starter
    Frenzied Member
    Join Date
    Aug 1999
    Location
    Santa Clara, Ca , 95058
    Posts
    1,105

    Post

    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.

  5. #5
    New Member
    Join Date
    Feb 2000
    Location
    Houma, LA, USA
    Posts
    3

    Post

    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?

  6. #6

    Thread Starter
    Frenzied Member
    Join Date
    Aug 1999
    Location
    Santa Clara, Ca , 95058
    Posts
    1,105

    Post

    Have you tried setting the "required" attribute of the date field to "N" ?

  7. #7
    New Member
    Join Date
    Feb 2000
    Location
    Houma, LA, USA
    Posts
    3

    Post

    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
  •  



Click Here to Expand Forum to Full Width