Results 1 to 2 of 2
  1. #1
    rcappy is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Jan 2012
    Posts
    1

    combo box to Populate a form

    Hi all
    I have 2 forms generated from 2 tables


    1 customer
    1 orders
    I have a drop down box in the orders form which contains customer ID and surname,address 1, address 2, county , postcode and tele number. from customer details and can only fill in the surname in the orders form.

    How can I populate all the other fields on the order form?

  2. #2
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows XP Access 2003
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,544
    You could set the Record Source property of each text box to something like this:

    = Nz(NameOfCombo.Column(NumberOfColumnRequired),"")

    The <NumberOfColumnRequired> part should be the number of the column that holds the detail required. Keep in mind that column numbers start from 0, so the first colum is number 0, the second is number 1 etc.

    This is Untested
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

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

Similar Threads

  1. Replies: 8
    Last Post: 12-05-2011, 01:55 PM
  2. Replies: 12
    Last Post: 04-18-2011, 08:52 AM
  3. Replies: 0
    Last Post: 12-02-2010, 11:59 AM
  4. Auto populate form using combo box
    By bundy75 in forum Access
    Replies: 6
    Last Post: 08-29-2010, 06:18 AM
  5. Use Combo Box to Populate Form
    By gracysaurus in forum Forms
    Replies: 1
    Last Post: 08-09-2010, 02:40 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