Results 1 to 5 of 5
  1. #1
    Join Date
    Jun 2015
    Location
    Wales. Land of the sheep.
    Posts
    1,228

    cascading combo boxes and required fields.

    I have made a form with cascading combo boxes. For these to work properly the form needs to requery on change event of the combo box. (it needs to wipe anything relating to that combo box, so the user cant enter incorrect information.)

    The problem is, most of the fields are required fields, so the form has various errors depending what I do. Most recently I get the Error 3314 value must be entered.

    Its trying to complete the record I'm half way through because of the requery. I'm a bit stumped. appreciate any ideas, Thanks.

  2. #2
    Join Date
    Jun 2015
    Location
    Wales. Land of the sheep.
    Posts
    1,228
    suppose I could remember values for later use then append.

  3. #3
    Micron is offline Very Inert Person
    Windows 7 32bit Access 2007
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,423
    Some of the explanation is a bit vague, but maybe a refresh would work instead of requery?
    Depending on the process, sometimes a temp table works better. Validation can be done when the attempt is made to 'move' the temp record to the permanent table.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  4. #4
    Join Date
    Jun 2015
    Location
    Wales. Land of the sheep.
    Posts
    1,228
    Some good advice there. Didn't even think of a temp table. Also a refresh is what I should have been doing not a requery. thanks.

  5. #5
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Cascading Combo Boxes
    By cbramsey in forum Forms
    Replies: 3
    Last Post: 05-18-2017, 06:26 AM
  2. cascading combo boxes
    By SunTop in forum Forms
    Replies: 18
    Last Post: 12-26-2016, 01:38 PM
  3. Cascading combo boxes... help me again please!
    By aqueousdan in forum Access
    Replies: 6
    Last Post: 09-20-2016, 06:54 AM
  4. Cascading Combo Boxes
    By JCW in forum Programming
    Replies: 4
    Last Post: 04-02-2014, 05:05 PM
  5. Cascading combo boxes
    By Jackie in forum Access
    Replies: 5
    Last Post: 07-26-2013, 09:07 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