I have thirty something combo boxes in one of my form, and i have set all of these combo boxes default text to "Please select". This form allows user to perform database transaction like save, delete, update and search function.
My problem is that when the user wants to perform add transaction without selecting the proper option of combo box, it will insert the "Please select" into the database and actually it is a null value, the field should be empty for non selected combo box.
I dont want to hardcode it and set all these combo boxes.text to "" so i tried to create an string array which it is used to store all these combo boxes name and then i called a function to execute the check. I managed to pass the string array to the function and however the function cannot recognize the type of member of array, for example, i coded like this
if a(0).text="Please select" then
return a(0).text=""
I know this definitely won't work but i have no idea how my concept can be done. Anyone can help on this? Thank you.
My problem is that when the user wants to perform add transaction without selecting the proper option of combo box, it will insert the "Please select" into the database and actually it is a null value, the field should be empty for non selected combo box.
I dont want to hardcode it and set all these combo boxes.text to "" so i tried to create an string array which it is used to store all these combo boxes name and then i called a function to execute the check. I managed to pass the string array to the function and however the function cannot recognize the type of member of array, for example, i coded like this
if a(0).text="Please select" then
return a(0).text=""
I know this definitely won't work but i have no idea how my concept can be done. Anyone can help on this? Thank you.