T
Tony Williams
I have a form that has two combo control's based on different tables, table
A and table B which linked on a text field that holds a company name. The
user selects a company from the combo box based on table A and selects a
date from the other combo box which is based on table B and then clicks a
command form to open a form that is also based on table B. The company may
exist in Table A but not in table B. However the form opens even if there is
no record for the company in table B. How can I stop the form from opening
and pup up a message that says "There isn't a record for this company?"
Thanks
Tony
PS I'm new to VBA!!!!!
A and table B which linked on a text field that holds a company name. The
user selects a company from the combo box based on table A and selects a
date from the other combo box which is based on table B and then clicks a
command form to open a form that is also based on table B. The company may
exist in Table A but not in table B. However the form opens even if there is
no record for the company in table B. How can I stop the form from opening
and pup up a message that says "There isn't a record for this company?"
Thanks
Tony
PS I'm new to VBA!!!!!