Yes.  I assume you're trying to update a table related to Employees.  Create
a query on that table and add the Employees table - be sure they're related
correctly.  Add ALL the fields from the related table and info you want to
display from Employees such as name and address.  Use the query as the
record source for your form.  Create a combo box on the EmployeeID foreign
key, and when your user selects an Employee, Access will auto-lookup the
employee name and address for you.

An Example is the Orders form in Northwind that pulls the Customer
information automatically.  Code in the AfterUpdate event of CustomerID also
copies the current customer address info to the Shipping fields in the
Orders table.

John Viescas, author
"Building Microsoft Access Applications"
"Microsoft Office Access 2003 Inside Out"
"Running Microsoft Access 2000"
"SQL Queries for Mere Mortals"
http://www.viescas.com/
 

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf
Of fsctke612
Sent: Tuesday, December 20, 2005 3:39 PM
To: [email protected]
Subject: [ms_access] Populating a Form

Is it possible to automatically populate a form by inserting one piece 
of information.  As example would be using an employee # and when it 
is entered on the form the Employee Name and Address would 
automatically populate.  









 
Yahoo! Groups Links



 






------------------------ Yahoo! Groups Sponsor --------------------~--> 
1.2 million kids a year are victims of human trafficking. Stop slavery.
http://us.click.yahoo.com/.QUssC/izNLAA/TtwFAA/q7folB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ms_access/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to