scubadiver007
Registered User.
- Local time
- Today, 01:26
- Joined
- Nov 30, 2010
- Messages
- 317
I have an excel link table and 24 of the columns are named "Attendee outcomes1" to "Attendee outcomes24".
The following query is a much shorter version (but this is essentially it):
Every time I loop the query I want the "attendee outcomes" column to change (from 1 to 2 to 3 etc).
Also, at some point there will be an empty column and if the query returns no records I want the loop to stop.
Thanks
The following query is a much shorter version (but this is essentially it):
Code:
INSERT INTO tble_record_comp ( ListNo, FamilyID, MemberID, Attendee_outcome )
SELECT Import_Link.List, Import_Link.[Family ID], Import_Link.[Member ID], Import_Link.[Attendee Outcomes1]
FROM Import_Link
WHERE (((Import_Link.[Attendee Outcomes1]) Is Not Null));
Every time I loop the query I want the "attendee outcomes" column to change (from 1 to 2 to 3 etc).
Also, at some point there will be an empty column and if the query returns no records I want the loop to stop.
Thanks