I
need some code to wrap around an append query to append/create new records from 2 existing tables....
I have a table called Survey Question Table that contains the question ID's and text for my Survey Question Input formA
I have a Survey Table where a user inputs demographic information via a formA ... when they click the continue button I need the click event to save the current data input into the Survey Table (that part is easy) ... then I need it to create records in my 3rd table Survey Question Response table ... that consists of the newly created SurveyID (this is a number not an auto number field) from the Survey Table and the 10 Question ID's from the Survey Question table.
It should cursor through the 10 records that are in the Survey Question table and create 10 records in the Survey Question Response table with the new/current SurveyID and the 10 existing Question ID's...
Say I just input SurveyID # 123 ....
The records that should be created should look like...
Survey ID QuestionID
123 1
123 2
123 3
123 4
123 5
123 6
123 7
123 8
123 9
123 10
Tried using a For... Each ... Next ... and haven't had any luck ...
I would greatly appreciate any suggestions or snipets or code that anyone may have already used ...
Thanks much ... have a good one!
g-woman
need some code to wrap around an append query to append/create new records from 2 existing tables....
I have a table called Survey Question Table that contains the question ID's and text for my Survey Question Input formA
I have a Survey Table where a user inputs demographic information via a formA ... when they click the continue button I need the click event to save the current data input into the Survey Table (that part is easy) ... then I need it to create records in my 3rd table Survey Question Response table ... that consists of the newly created SurveyID (this is a number not an auto number field) from the Survey Table and the 10 Question ID's from the Survey Question table.
It should cursor through the 10 records that are in the Survey Question table and create 10 records in the Survey Question Response table with the new/current SurveyID and the 10 existing Question ID's...
Say I just input SurveyID # 123 ....
The records that should be created should look like...
Survey ID QuestionID
123 1
123 2
123 3
123 4
123 5
123 6
123 7
123 8
123 9
123 10
Tried using a For... Each ... Next ... and haven't had any luck ...
I would greatly appreciate any suggestions or snipets or code that anyone may have already used ...
Thanks much ... have a good one!
g-woman