Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Automatically enter data in form fields.

Status
Not open for further replies.

egptech

Technical User
Nov 18, 2002
16
US
I have a table of customer names and info. I want to be able to enter the customer's name in the name field of a form and have the address, city, zip, tel. etc. fields automaticaly filled in with the customer's info. I am suffering from severe brain fade on this one. I pretty much have everything else working in my database but this one is killing me.
I am using access 2000.
Thanks
 
Hi:
Use a DLOOKUP statement in the afterUpdate event of the textbox Name. It should fill in all the textboxes that needs to be filled.
Cool
Z
 
you can do this a number of ways.

-use a dlookup as the datasource for each text box.
-use VB to pull the record of the customer and then change the .value of those controls to reflect the information based on the customer name.
-use bounded controls
-use a filter that uses customer name

There's probably more, but that's off the top of my head.

Randall Vollen
National City Bank Corp.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top