I'm having problems with something that I think is quite simple, I just can't get it to work, this is really frustrating me, and I would really appreciate some help.
I have two tables:
Company & Contact
I have two forms:
Company and Contact
The company form includes the company name and the telephone number.
The contact form also includes these fields and after selecting the company name, I want the database to look up the telephone number.
This is the code I am using:
Private Sub AfterUpdate_CompanyName()
CompanyTelephoneNumber = Forms![Company]!CompanyTelephoneNumber
Department.SetFocus
End Sub
I have two tables:
Company & Contact
I have two forms:
Company and Contact
The company form includes the company name and the telephone number.
The contact form also includes these fields and after selecting the company name, I want the database to look up the telephone number.
This is the code I am using:
Private Sub AfterUpdate_CompanyName()
CompanyTelephoneNumber = Forms![Company]!CompanyTelephoneNumber
Department.SetFocus
End Sub