as the title suggests I am writing SQL out of excel vba to query Forms contents out of a MS-Access db. The SQL works fine however, the fields where combo boxes are, the SQL returns their index instead of the text field.
I spent some time googling this but most of the results are asking how to display on the form in the combo box, I am just trying to return the text display form the combo box with my SQL.
I will go ahead and say the person who designed this did a bad job, and the tables relating to these drops down have nothing in common(the tables are just a list of the drop down values and ID's).
My question is what is the best way to return this value? Can I join based off the drop down index?
.Column()
property of the combobox object. However, this is not available in SQL, so you might need to pass the value from vba to your SQL statement.MSDN – MoondogsMaDawg[Forms]![MyForm]![Combo1].Tag
. From here – MoondogsMaDawg