Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Converting Form to Data Access Page

Status
Not open for further replies.

johnnymagee

Programmer
Apr 19, 2005
26
GB
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)
 
Sorry I cut and paste this. Not very clear is it?

I have converted a Form to a Data Access Page. There are several comboboxes on the form each sourced from a different query. As the user selects something in a combobox, the queries for the other comboboxes need to be rewritten. This works fine on the Form but not on the DAP. I have very little idea how to do this!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top