How to get caption text of linked labels for every control on a form
I have a form based on a table with this textboxes and combo boxes :
- txtOrderID
its linked label caption : Order Number
- txtOrderDate:
its linked label caption : Visit Date
- cboCompanyNm :
its linked label caption : Company Code
- cboEmployeeNm:
its linked label caption : Employee Name
- txtWriter:
its linked label caption : Writer Name
And multi other controls .
If a user let any control blank . How to inform user by refering not to the
control name , i want to refer to the
Control by its linked label caption ?
Example: if user let cboCompanyNm blank , inform user beforeupdate that record by msg "Company Code is blank please select any company. " then set focus on cboCompanyNm combobox.
Is that enable and why ?
I have a form based on a table with this textboxes and combo boxes :
- txtOrderID
its linked label caption : Order Number
- txtOrderDate:
its linked label caption : Visit Date
- cboCompanyNm :
its linked label caption : Company Code
- cboEmployeeNm:
its linked label caption : Employee Name
- txtWriter:
its linked label caption : Writer Name
And multi other controls .
If a user let any control blank . How to inform user by refering not to the
control name , i want to refer to the
Control by its linked label caption ?
Example: if user let cboCompanyNm blank , inform user beforeupdate that record by msg "Company Code is blank please select any company. " then set focus on cboCompanyNm combobox.
Is that enable and why ?