Results 1 to 4 of 4
  1. #1
    JasonMann1979 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2013
    Posts
    10

    Loading records to bound textboxes based off of combobox selection

    This seems so simple, but I cannot seem to get it to work. I have a form linked to a table. If the user chooses to use a combo box to select an ID I want the rest of the bound text boxes to fill with data from that particular record.



    I tired to add a combobox using the wizard, but only when I choose the ID in the combobox, none of the other records push to the text boxes.



    Thanks for the help guys!

    Jason

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,624
    You want to filter a form based on criteria entered into UNBOUND combobox?

    A parameterized query is one approach. Review: http://www.datapigtechnologies.com/f...tomfilter.html

    The wizard probably generated an embedded macro instead. Examine the macro code.

    I never use the wizards because they do things I don't like and they inhibit understanding code.
    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.

  3. #3
    JasonMann1979 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2013
    Posts
    10
    Got it! Thanks June7. On top of the info in the data, I had to set "Data Entry" from the data tab to No. It looks like I'll need to make copy of this form and use one for data entry and one to review the data.

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,624
    "Data Entry" won't allow display of existing records.

    Use one form. Just change the mode when it opens. This is an argument of OpenForm method.
    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. Replies: 1
    Last Post: 09-06-2011, 01:47 PM
  2. Replies: 29
    Last Post: 08-16-2011, 05:52 PM
  3. Replies: 6
    Last Post: 07-28-2011, 04:07 AM
  4. Replies: 0
    Last Post: 08-24-2010, 06:38 PM
  5. Replies: 0
    Last Post: 12-16-2009, 01:14 PM

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