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!

How to use two fields to select a unique record

Status
Not open for further replies.

keysol

Programmer
Feb 27, 2001
81
CA
My db includes an account number field and a loan number field. An account may have more than one loan. Detail records are created which are specific to a particular loan. So, how do I go about creating the necessary joins using two fields to define an "ID"
IE: Account: 10233 Loan 1 detail record 1
detail record 2
detail record 3
Account: 10233 Loan 2 detail record 1
detail record 2
Thanks,

Gérald
 
Hi Gérald,

If you are looking for a unique "field" for account number and loan number to make up an "ID" try a calculated field with the formula: Combine(account,loan_num)

Good luck,

Mark
 
You can join databases on more than one field too.

Sue Sloan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top