I've got a 1 column combo box on a form with values in. I would like to use the selected value in some vba that is activated on change which writes the value into the SQL to select the top x amount of records in a query. The writing to SQL bit works fine if I manually type the value into the string that gets written into the SQL but I what I really want is to have the value as a variable taken from the combo box. Anyone know what code might work?
thanks in advance,
Steve
thanks in advance,
Steve