Hi Guys
I am building a project using Excel as a frontend and Access as a backend. There is just one userform and the user needs to select the values in 3 comboboxes.( first select value in Combobox1 , then combobox2 will appear and then user will select the value from combobox2, then combobox3 will appear and user will need to select the value from combobox3) and based upon the values selected , there will be only one record in the Access table. Now based upon that corresponding controls will appear in the userform and the corresponding values will be populated in those controls. The new requirements in this are as below:
1.It should be dynamic – that means as we add or delete fields in the table (or even rename them) this needs to recognise that and dynamically produce a control for each field.
2.Linked to the above the system needs to recognise the data type for each field and again dynamically display an appropriate control. (Checkbox or Textbox)
I have never worked with dynamic controls so will need your help in this. So if in the table there is checkbox then checkbox will appear in the userform and if the field's data type in Text then textbox will appear in the userform and the values should be populated in the controls on the userform.
Any help will be much appreciated.
Thanks
Bookmarks