Results 1 to 4 of 4
  1. #1
    MatthewGrace is offline Competent Performer
    Windows 8 Access 2010 64bit
    Join Date
    Jan 2013
    Posts
    159

    Combobox Wizard synch with Current Record.


    After dropping a Combobox Object on a form, the Wizard allows you to choose the very cool option: "Find a record on my form based on the value I selected in the combobox." It works beautifully, but, it does leave something desired: When test-driving your newly synched up combobox in Form View you'll notice that if you decide to start flipping through records by mouse clicking the usual record selector arrows at the bottom of the screen, the records change but the Combobox remains the same! It makes the data look downright erroneous.

    But it makes sense... the combobox is Unbound afterall. But binding it will render it useless (as far as I can tell).

    What can be done to allow both:
    - Keep the Combobox Wizards "Find a record..." feature (it's a premade embedded macro)
    - Make clicking record selectors update that same combobox.

    Thank you to anyone who takes the time to help me,
    Matt

  2. #2
    burrina's Avatar
    burrina is offline VIP
    Windows 8 Access 2010 32bit
    Join Date
    Oct 2012
    Location
    Freeport,Texas
    Posts
    1,383
    A Combobox can be bound and still lookup values. Are you saying after using the ComboBox you no longer want it display the result? I don't use standard record selectors, they take up too much valuable Real Estate. Generally all you need is a Find and New Record anyway. Also, I don't use macros,sorry! If I understand correctly you want;
    Me.MyComboBox = Null
    HTH

  3. #3
    MatthewGrace is offline Competent Performer
    Windows 8 Access 2010 64bit
    Join Date
    Jan 2013
    Posts
    159
    Hm, there may be something lost in communication. For the avoidance of doubt, I've attached some photos of this issue. I'm sure a great many people have noticed the same thing.

    Figures A, B, and C show a table, and the use of the well-loved Combobox wizard that hooks up the "Find a record on my form based on the value I select..." feature. In the second photo, you see it being used unsuccessfully. Sure, the combobox itself works... but notice how clicking a record selector immediately makes the combobox inconsistent with the record (see red text on photos). It almost feels like a glaring oversight for those who enabled this otherwise fantastic feature.

    Click image for larger version. 

Name:	CreateForm.jpg 
Views:	14 
Size:	106.0 KB 
ID:	16540

    Click image for larger version. 

Name:	Result.jpg 
Views:	14 
Size:	75.6 KB 
ID:	16541

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,956
    I put unbound controls used to input filter criteria in the form header section, not in the detail section with data. Then code sets the control to null after the search operation completes.

    A textbox bound to the field can be in the detail section.

    If you want to synchronize the combobox when navigating to another record, use code in the form OnCurrent event to set value of the combobox.

    Me.comboboxname = Me!Title

    In a macro I think this requires the SetValue action.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Unbound Combobox show current month
    By burrina in forum Forms
    Replies: 1
    Last Post: 03-08-2013, 01:57 AM
  2. Table synch question...
    By MatthewGrace in forum Access
    Replies: 2
    Last Post: 01-21-2013, 12:15 AM
  3. Replies: 8
    Last Post: 12-01-2012, 04:17 PM
  4. Synch database after offline update
    By snoopy2003 in forum Database Design
    Replies: 0
    Last Post: 02-21-2011, 11:40 AM
  5. synch 2 combo boxes in datasheet view
    By kapplers in forum Forms
    Replies: 2
    Last Post: 11-09-2009, 09:09 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