R
Rebecca Smith
Dave said:That works good, but now my problem is the questions I
want aren't like 1-10....they are like 1, 4, 5-9, 14,
etc...how do I get it to outpulse those specefic questions?
bugger - that's what I feared!! Time to call in the querydefs.
Okay - create a query with the criteria you want (e.g. if the question
numbers are all in one field, try something like: "In (1,4,5,6,7,8,9,14)"
in the criteria section under the question number.
Then copy the SQL code (like in the previous message I posted).
Now - you'll need to add code similar to this:
Dim qryDEF as DAO.querydef
Dim param as DAO.parameter
Set db = CurrentDb()
Set qryDEF = DB.OpenRecordset("", strSQL)
For Each param In qryDEF.Parameters
param.Value = Eval(param.Name)
Next
Set RS = db.OpenRecordset(strSQL, dbOpendynaset, dbSeeChanges)
etc.
Hope it helps!!!
Rebecca