Results 1 to 11 of 11
  1. #1
    ClassyD is offline Novice
    Windows 10 Access 2016
    Join Date
    Jun 2017
    Posts
    13

    Combo Box - List of Names but only want 1 name to print from form


    I am able to pull data in a combo box, but only want 1 of the names to print from the Form. Currently I'm printing all the names instead of one letter.

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,917
    Your requirements are a little fuzzy. How are you "printing" the names from the form?

  3. #3
    ClassyD is offline Novice
    Windows 10 Access 2016
    Join Date
    Jun 2017
    Posts
    13
    I'm sending the form to .pdf

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,917
    What code do you use to "send the form to .pdf"?

  5. #5
    ClassyD is offline Novice
    Windows 10 Access 2016
    Join Date
    Jun 2017
    Posts
    13
    No Code; I'm clicking on the icon. The query I'm using pulls back two records in the drop down list. Both record is pulling even though I'm only selecting one.

    Will something like this work to display the selected record only?
    Have an unbound combobox with a list of name - DISPLAY ONLY once the item has been selected.
    In the AfterUpdate event of the combobox,
    DoCmd.GoToRecord,,,acNewRec
    Me!ContactsID=Me!combobox

  6. #6
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,917
    I'm sorry but I do not have ac2016 so I will probably not be of much help. I'll see if I can find someone with ac2016 for you.

  7. #7
    CJ_London is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,933
    it could be something to do with your combo rowsource.

    Can you provide the sql to the combo rowsource plus combo properties of bound column, column count and column widths. Also some example data.

    my guess is your rowsource is something like

    Select lastname, firstname from tblnames

    bound column is 1

    column count is 2

    column widths 2cm;2cm

    and what is happening is your rowsource produces something like

    smith, john
    smith, james

  8. #8
    ClassyD is offline Novice
    Windows 10 Access 2016
    Join Date
    Jun 2017
    Posts
    13
    I'm using a query.

    The query pulls back two records.

    Marty James
    Cathy Smith

    The combo box allows me to select Marty James, but when I send the record to Cathy Smith is included.
    You know what, I think the problem is originally I built the code to show me Marty James. But the user want more than one name to appear so anyone on the list can
    process the record. Adding the additional name has created the problem.

  9. #9
    CJ_London is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,933
    OK, that blows one theory out of the water. But still need to know the sql to your query plus combo properties of bound column, column count and column widths.

    you say you have no code, just click on an icon. And what icon are you talking about? one in the ribbon, on the form? can you send a screenshot because I am struggling to picture what you have.

  10. #10
    ClassyD is offline Novice
    Windows 10 Access 2016
    Join Date
    Jun 2017
    Posts
    13
    I used a report and have completed this. Thanks for your help. Mark Done!

  11. #11
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,917
    I marked this thread as Solved for you. There is a link to the directions on how to do this in my signature.

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

Similar Threads

  1. Replies: 2
    Last Post: 03-23-2017, 01:16 PM
  2. Replies: 1
    Last Post: 04-21-2014, 08:00 AM
  3. How to list all names etc to Print
    By alanfallow in forum Forms
    Replies: 11
    Last Post: 01-16-2014, 01:42 AM
  4. Print just one form not the whole list
    By mrkaye in forum Forms
    Replies: 1
    Last Post: 01-02-2013, 11:54 AM
  5. Replies: 1
    Last Post: 07-30-2009, 12:54 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