Results 1 to 4 of 4
  1. #1
    slimjen is offline Expert
    Windows XP Access 2007
    Join Date
    Mar 2010
    Posts
    727

    Multiple unbound controls

    Hi all, I'm using access 2016...I have a form with 2 unbound controls. The users are able to select from the 1st cbo and it filters the 2nd cbo..when users select from the 2nd cbo..the related data on the form appears....it works as expected..My problem is when the user changes the selection from the 1st drop down, the 2nd cbo requeries and is blank...which I want but the data from the first selection remains until the user makes a new selection..how can when the 2nd selection requeries and is blank the data resets/blank? There's too many fields to list n the code to = "" can someone give me another way around this please.. I hope I've explained enough to help you help me..thank you

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,524
    the 2nd combo SHOULD be blank, since you cant know what the user is going to pick for the 1st combo, thus rendering 2nd combo invalid.
    and should be blank.

  3. #3
    slimjen is offline Expert
    Windows XP Access 2007
    Join Date
    Mar 2010
    Posts
    727
    Thanks for replying...yes, it does and works like I expected...but when the user selects another from the 1st cbo, the data on the form remains before the selection from the 2nd cbo...when the 2nd cbo is blank...users are getting confused if they walk away and return stating they don't know which cust. The data belongs to...trying to prevent this...

  4. #4
    Gicu's Avatar
    Gicu is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jul 2015
    Location
    Kelowna, BC, Canada
    Posts
    4,114
    Add a Me.Requery in the AfterUpdate event of combo1 (after you set Me.combo2=Null).

    Cheers,
    Vlad
    Vlad Cucinschi
    MS Access Developer
    http://forestbyte.com/

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

Similar Threads

  1. Replies: 7
    Last Post: 09-28-2018, 05:30 PM
  2. Replies: 0
    Last Post: 05-03-2017, 04:31 AM
  3. Replies: 9
    Last Post: 07-14-2014, 07:56 PM
  4. Writing multiple unbound controls to a table
    By dccjr in forum Programming
    Replies: 4
    Last Post: 11-28-2012, 08:18 PM
  5. Replies: 1
    Last Post: 07-13-2012, 09:13 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