Results 1 to 3 of 3
  1. #1
    Access Newbie is offline Novice
    Windows XP Access 2010 (version 14.0)
    Join Date
    Aug 2010
    Posts
    1

    Unhappy How to populate info???

    Hi All

    I'm building an invoice database so that Service Agents can log in and bill us for work that has been completed. When creating an invoice, the user must enter their companies ID. (AKA Servicer ID) In my database I have created a separate table containing details for each of our service agents. (Example: Servicer ID, Company Name, Address…) I want to set up the invoice form in such a way, that when the user enters their Servicer ID, the following field will display the company name.



    Any ideas on how I can accomplish this?

  2. #2
    maximus's Avatar
    maximus is offline Expert
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Aug 2009
    Location
    India
    Posts
    931
    There are many ways to do it. One of the most simple way to do this would be to use Column property of a combobox.

    I will assume that you have a Combox Box whose RowSource is the table Which Contains Servicer Details.
    (Example: Servicer ID, Company Name, Address…)

    My first Column here is Servicer ID its index =0
    Company Name its Index = 1
    and so on

    Now When I select an Servicer Id I want Company Name and Address to be automaticaly entered in text1 and text 2 on my form. so on the AfterUpdate event I will put this Code:
    Me.Text1=Me.Combo1.Column(1)
    Me.Text2=Me.Combo1.Column(2)

    Here combo I is the name of the combo box in which you select the Servicer Id.

  3. #3
    revnice is offline Advanced Beginner
    Windows 7 Access 2007
    Join Date
    Aug 2010
    Posts
    61
    Maximus:

    Would the invoice (or form) open blank when using that method?

    I have a form that populates based on cus-num but there's always data in it when I open it.

    I've tried setting the Data Entry parameter to Yes (which works) - but then the autopopulate functionality is defeated.

    Thanks - rev

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

Similar Threads

  1. VBA to get info from excel
    By cowboy in forum Programming
    Replies: 5
    Last Post: 06-27-2010, 10:55 PM
  2. Credit Card Info, Where?
    By mastromb in forum Access
    Replies: 3
    Last Post: 05-26-2010, 12:37 AM
  3. Print next 8 days & info
    By skippernick in forum Reports
    Replies: 2
    Last Post: 04-06-2010, 12:38 PM
  4. SQL- retrieving info
    By jmarti57 in forum Programming
    Replies: 0
    Last Post: 12-10-2008, 03:05 PM
  5. Summing info in one Sub form to another
    By Mxcsquared in forum Forms
    Replies: 0
    Last Post: 12-14-2005, 11:44 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