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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting a record value from a Second Table

Status
Not open for further replies.

JimCowan

Technical User
Jul 12, 2000
10
CA
I need code to access a particular field record in a different Table. ACCESS wants to look only at the current Table, being the one underlying my ComboBox on a form.
How do I point access to the new table, and what code is correct to place the field record into a variable?
 
Investigate the dlookup() function

strvariable = dLookup("[fieldname]","Tablename","criteria")

or use DAO,ADO or SQL to get the value as well

Good Luck
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top