Page 2 of 2 FirstFirst 12
Results 16 to 19 of 19
  1. #16
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    How about my post #13?

  2. #17
    SunTop is offline Advanced Beginner
    Windows 8 Access 2016
    Join Date
    Aug 2016
    Posts
    93
    RuralGuy: their is no space in my code, that was just a typo in the post, probably because I copied it and past it from my previous post

    Micron: I did not use (docmd.setwarnings false) anywhere in my code, I never knew it existed till just now. I use this form to alter existing records which rarely happens (but it happens so I have to provide it in the database)

  3. #18
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    I'm almost out of ideas. What is the RecordSource of your form? Query, Table, Query with a Join, SQL string (dynamic query)?

  4. #19
    John_G is offline VIP
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2011
    Location
    Ottawa, ON (area)
    Posts
    2,615
    Does combo2 have an After Update event on it? If so, you could try running that event from your code in combo1 After Update: combo2_afterUpate

    How do you that the value in the underlying table field is not being changed when you set Combo2 to Null?

    But a more important issue is that even if you can set the value in combo2 and the field to Null, it's going to give you an error because the field is required. However, you should not see that error until you try to save the record; the error is coming from the Validation rule on the table field. You don't need it anyway - setting required = Yes will do. You could use Before Update at the record (form) level to stop a record update if the user did not select a value in Combo2.

    One other thing to check is the Limit To list property of Combo2. If that is set to Yes, you can't set combo2 to Null because it would violate the Limit to List.

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Cascading combo boxes... help me again please!
    By aqueousdan in forum Access
    Replies: 6
    Last Post: 09-20-2016, 06:54 AM
  2. Cascading Combo Boxes
    By Heathey94 in forum Queries
    Replies: 26
    Last Post: 09-05-2016, 03:02 PM
  3. Cascading Combo Boxes
    By JCW in forum Programming
    Replies: 4
    Last Post: 04-02-2014, 05:05 PM
  4. Cascading combo boxes
    By Jackie in forum Access
    Replies: 5
    Last Post: 07-26-2013, 09:07 AM
  5. Cascading Combo Boxes
    By desireemm1 in forum Programming
    Replies: 1
    Last Post: 10-05-2009, 06:00 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums