Results 1 to 4 of 4
  1. #1
    crimedog is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Dec 2013
    Posts
    141

    ComboBox to seach record

    In my form Initial Oder Entry - I have a drop down to choose rep - the text Boxes should update with the Rep First Name and Rep Last name - to match the record from the ComboBox

    What am I missing
    (zip file attached)
    Attached Files Attached Files

  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,771
    The embedded macro code is not working. The macro WHERE CONDITION references RepID field. There is no RepID field on the main form. Change it to [ID].

    I use only VBA, easier to debug.

    Why is the RepFirstName a listbox? I deleted it and added a textbox in its place.
    Last edited by June7; 01-09-2014 at 08:09 PM.
    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
    crimedog is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Dec 2013
    Posts
    141
    That is great - on your direction I got it working. What would the VBA look like for say Combo Box: cboRep Record: [RepId]

  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,771
    Don't understand. There is no RepID field on form 01InitialEntry. If you want to know the VBA code for the existing macro, there is a tool on ribbon to convert macros to VBA.
    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. Subreport on form seach issues
    By mike02 in forum Reports
    Replies: 15
    Last Post: 06-06-2013, 08:31 AM
  2. Issue with seach fields in form
    By Cheryl_Granieri in forum Forms
    Replies: 1
    Last Post: 03-24-2013, 10:50 AM
  3. Form Seach Box-all attempts have failed.
    By leamas in forum Forms
    Replies: 12
    Last Post: 06-07-2012, 09:57 AM
  4. multiple seach critera
    By dirtbiker1824 in forum Queries
    Replies: 1
    Last Post: 03-29-2011, 01:17 PM
  5. Seach table from within a form
    By 95DSM in forum Forms
    Replies: 5
    Last Post: 07-12-2010, 09:43 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