I have a table called functions where there is a grouping number field. Each record can have the same grouping number i.e. duplicates allowed
I have another table which holds the group - Arts for example may be number 10
the user chooses a group say "Arts" (from a combo box) and the str says:
select * from functions where [grouping] = 10
the table functions may have 10 records which have a grouping number of 10
These 10 records will have a distinct reference code.
I'd like to store these 10 records, in say a temporary table.
There is another table called receipts which I'd like to loop through the 10 records and find any records in the table receipts where the distinct reference code matches.
I'd then like to have a message box saying how many, if any records were found and if some were found have them in a continious form
Any help much appreciated
I hope I've made myself clear
Gwilym
I have another table which holds the group - Arts for example may be number 10
the user chooses a group say "Arts" (from a combo box) and the str says:
select * from functions where [grouping] = 10
the table functions may have 10 records which have a grouping number of 10
These 10 records will have a distinct reference code.
I'd like to store these 10 records, in say a temporary table.
There is another table called receipts which I'd like to loop through the 10 records and find any records in the table receipts where the distinct reference code matches.
I'd then like to have a message box saying how many, if any records were found and if some were found have them in a continious form
Any help much appreciated
I hope I've made myself clear
Gwilym