Results 1 to 7 of 7
  1. #1
    Juan4412 is offline Competent Performer
    Windows 7 64bit Access 2016
    Join Date
    Dec 2010
    Posts
    209

    Form Display Question

    I have created a form based off a table. My table holds a numeric value for the salesperson, so we have tableSales which ahs the numeric value and atbleSalesPerson who has the numeric value and the name.



    For doing data entry, I would like the user to be able to select the Sales Person Name from a combo box and it save the numeric value in tableSales

    How do this?

  2. #2
    Join Date
    May 2018
    Location
    Living in Scotland UK
    Posts
    1,820
    Can you upload the database?

  3. #3
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    6,556
    Hardly need to upload a db for this?
    Use the combo wizard.
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  4. #4
    Juan4412 is offline Competent Performer
    Windows 7 64bit Access 2016
    Join Date
    Dec 2010
    Posts
    209
    Quote Originally Posted by Welshgasman View Post
    Hardly need to upload a db for this?
    Use the combo wizard.

    How do I use the combo wizard to achieve this?

  5. #5
    Join Date
    May 2018
    Location
    Living in Scotland UK
    Posts
    1,820
    In The Design of the Form you would delete the current Control SalesPerson.

    You then use the Combobox Wizard to create a Combobox that Looks up the SalesPerson table.

    The last Step of using the Wizard is the would select Store This vale in SalesPersonID

  6. #6
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows 10 Access 2016
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,614
    Quote Originally Posted by Juan4412 View Post
    How do I use the combo wizard to achieve this?
    This may be of help: https://www.youtube.com/watch?v=5kxgvMW0FoU
    but don't be tempted into having a lookup field in your table.
    If you really can't manage to do this then you'll need to post a copy of the db.
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  7. #7
    Gicu's Avatar
    Gicu is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jul 2015
    Location
    Kelowna, BC, Canada
    Posts
    4,250
    Open existing form in design view, right click the textbox bound to the SalesPersonID field and click on Change To and select Combo Box. Now click the Data tab on the Properties window for the combo and in the row source type select Table\Query and for the row source click the builder on the right and bring your tblSalesPerson table. Select the id and name fields, set your order and save. The final step is to set up the combo's columns: make column 1 the bound column, set column number to 2 and column widths to 0";3" (set also the list width to 3" or whatever you need to display the full names).

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

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

Similar Threads

  1. Display Question
    By jo15765 in forum Forms
    Replies: 16
    Last Post: 03-07-2022, 02:41 PM
  2. display data question
    By ismailsh in forum Access
    Replies: 5
    Last Post: 02-07-2019, 01:03 PM
  3. display field question
    By jseib1947 in forum Access
    Replies: 6
    Last Post: 11-21-2011, 02:09 PM
  4. Form/Query Display Results Question
    By AcmeGearSteve in forum Access
    Replies: 5
    Last Post: 10-12-2010, 01:21 PM
  5. Replies: 1
    Last Post: 02-27-2006, 07:46 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