Hi,
I've designed a form to add companies to a list of companies.
Now I would like to have a button on the form "Add contact",
so that a new contact person for the added company can be added.
The button opens the frmAddContact, in which the person's details can be
inserted.
However I would like to only open frmAddContact if the fields CompanyID,
CompanyName and CompanyType are filled in. If not, a message box
would appear stating "Not all fields are filled in."
Does anyone have an idea how to do this? It may either be done by
programming code or by using "Build up happing" (when right-mouse clicking the button in design mode, the top option).
Regards,
Robbin
I've designed a form to add companies to a list of companies.
Now I would like to have a button on the form "Add contact",
so that a new contact person for the added company can be added.
The button opens the frmAddContact, in which the person's details can be
inserted.
However I would like to only open frmAddContact if the fields CompanyID,
CompanyName and CompanyType are filled in. If not, a message box
would appear stating "Not all fields are filled in."
Does anyone have an idea how to do this? It may either be done by
programming code or by using "Build up happing" (when right-mouse clicking the button in design mode, the top option).
Regards,
Robbin