I have had to change the names of some fields in a table and this resulted in comboboxes not working anymore.
My plan is to create a query based on the new field names/table name, and then replace the current Row source with that.(the field and table names have been changed using VBA already)
This is some code for an existing combobox on a form to change it to a query.
How do i adapt it please?
I want to change the sql in the original table to a query name but leave the rest of the properties and sizes the same. Is it possible?
[imgnothumb]http://bytes.com/attachments/attachment/7075d1373474916/rowsource-change.jpg[/imgnothumb]
My plan is to create a query based on the new field names/table name, and then replace the current Row source with that.(the field and table names have been changed using VBA already)
This is some code for an existing combobox on a form to change it to a query.
Code:
Forms!Employees!cmboNames.RowSourceType = "Table/Query" Forms!Employees!cmboNames.RowSource = "EmployeeList"
I want to change the sql in the original table to a query name but leave the rest of the properties and sizes the same. Is it possible?
[imgnothumb]http://bytes.com/attachments/attachment/7075d1373474916/rowsource-change.jpg[/imgnothumb]
Comment