Hello, Im not sure if this should go in forms or queries. but i guess its a bit of both. I have two tables:
TABLE: COMPANIES
ID
Account_no
Company
1Address Type
1Address1
1Address2
1Address3
1Town
1County
1Postcode
Company_Notes
TABLE: CANCELLATIONS
Cancellation_ID
DX_NO
Company_Name
Cancellation_Date
Product
Diarised
Date_Diarised
Cancellation_Complete
Date_Complete
COMPANIES.Account_no = CANCELLATIONS.DX_NO
I have created a cancellations form (tabular). In this form i have a few fields. The two main fields of concern are. DX_NO and Company name. What I want to do is when I enter a DX_NO I would like the Company_name field to update automatically based on the DX_NO. But i am not sure how to do this. I need to somehow tell the Company_name field to:
Select company from Companies WHERE companies.account_no = cancellations.dx_no
TABLE: COMPANIES
ID
Account_no
Company
1Address Type
1Address1
1Address2
1Address3
1Town
1County
1Postcode
Company_Notes
TABLE: CANCELLATIONS
Cancellation_ID
DX_NO
Company_Name
Cancellation_Date
Product
Diarised
Date_Diarised
Cancellation_Complete
Date_Complete
COMPANIES.Account_no = CANCELLATIONS.DX_NO
I have created a cancellations form (tabular). In this form i have a few fields. The two main fields of concern are. DX_NO and Company name. What I want to do is when I enter a DX_NO I would like the Company_name field to update automatically based on the DX_NO. But i am not sure how to do this. I need to somehow tell the Company_name field to:
Select company from Companies WHERE companies.account_no = cancellations.dx_no