J
janf
Access 2007
I have two tables; Medlemmer (name, address, phone etc.) and Resultater
(holds information for (0 to n) competition results for each member), and one
form with a 3 page tabctrl. (or MultiPage??). Record source is Medlemmer.
On tab (page) 1 I enter info for each member. Resultater is linked to
Medlemmer as a subdatasheet on tab (page) 2 where Medlemmer.[M-ID]
(Autonumber) = Resultater.ID.
So far all is perfect.
I want to have the 3 best results for each member.
(Not all members have results, and some have only one or two.)
The table Resultater can hold the results like this:
[ID] - [Competitionname] - [Res]
1 - (...) - 236
1 - (...) - 224
3 - (...) - 234
2 - (...) - 241
1 - (...) - 230
2 - (...) - 242
1 - (...) - 239
1 - (...) - 225
3 - (...) - 235
2 - (...) - 236
3 - (...) - 235
.....
n - 212 - <empty> - <empty>
and I want to show the result in a report (and in textboxes on the form) like:
[ID] - [Res1] - [Res2] - [Res3]
1 - 239 - 236 - 230
2 - 242 - 241 - 236
3 - 235 - 235 - 234
.....
n - 212 - <empty> - <empty>
Any suggestions?
Thanks
I have two tables; Medlemmer (name, address, phone etc.) and Resultater
(holds information for (0 to n) competition results for each member), and one
form with a 3 page tabctrl. (or MultiPage??). Record source is Medlemmer.
On tab (page) 1 I enter info for each member. Resultater is linked to
Medlemmer as a subdatasheet on tab (page) 2 where Medlemmer.[M-ID]
(Autonumber) = Resultater.ID.
So far all is perfect.
I want to have the 3 best results for each member.
(Not all members have results, and some have only one or two.)
The table Resultater can hold the results like this:
[ID] - [Competitionname] - [Res]
1 - (...) - 236
1 - (...) - 224
3 - (...) - 234
2 - (...) - 241
1 - (...) - 230
2 - (...) - 242
1 - (...) - 239
1 - (...) - 225
3 - (...) - 235
2 - (...) - 236
3 - (...) - 235
.....
n - 212 - <empty> - <empty>
and I want to show the result in a report (and in textboxes on the form) like:
[ID] - [Res1] - [Res2] - [Res3]
1 - 239 - 236 - 230
2 - 242 - 241 - 236
3 - 235 - 235 - 234
.....
n - 212 - <empty> - <empty>
Any suggestions?
Thanks