johnnymagee
Programmer
First I delete the query which is the listrowsource of the combobox
msodsc.RecordsetDefs.Delete "querysource"
then I build up a new SQL query - that works fine
then I want to add this new query as the listrowsource of the combobox but I dont know where to start this really as the DAP combobox doesnt seem to allow it in VBScript, whereas the VBA for a Form does.
I think this might be a starting point but I get an error "Invalid procedure call or argument"
set qdf = msodsc.Execute(ssearchsql)
msodsc.RecordsetDefs.Delete "querysource"
then I build up a new SQL query - that works fine
then I want to add this new query as the listrowsource of the combobox but I dont know where to start this really as the DAP combobox doesnt seem to allow it in VBScript, whereas the VBA for a Form does.
I think this might be a starting point but I get an error "Invalid procedure call or argument"
set qdf = msodsc.Execute(ssearchsql)