ChewDoggie
Programmer
Hello All,
I've developed a VB app that scores motorcycle races. One function that the software has to deliver is that I have to do a "back-to-back" racer check, where I have to check to see if there are any racers who are racing in back-to-back racenums.
I have an Access DB with the following tables:
Registration table with fields:
eventid
racerid
classid
comp
EventsClasses table with fields:
eventid
classid
racenum
The challenge comes into play when you consider that the racenums may not be successive. That is, you might have racenum "1", then racenum "3", then racenum "5" OR you might have racenum "1", then racenum "2", then racenum "3", etc.
The way I'm handling it right now is a very labor intensive process. I grab all racers for 1st racenum (which might be "1" or "2" or "3"...who knows!), then grab all racers for 2nd racenum (which might be "2" or "3" or "10"...who knows!) and loop thru each recordset to grab all common racerid's. This can take a while when you have 50+ racenums and 1500+ racerids.
Is there a way to do it with a single query?
Access Query Experts UNITE !
Thanks!
AMACycle
American Motorcyclist Association
I've developed a VB app that scores motorcycle races. One function that the software has to deliver is that I have to do a "back-to-back" racer check, where I have to check to see if there are any racers who are racing in back-to-back racenums.
I have an Access DB with the following tables:
Registration table with fields:
eventid
racerid
classid
comp
EventsClasses table with fields:
eventid
classid
racenum
The challenge comes into play when you consider that the racenums may not be successive. That is, you might have racenum "1", then racenum "3", then racenum "5" OR you might have racenum "1", then racenum "2", then racenum "3", etc.
The way I'm handling it right now is a very labor intensive process. I grab all racers for 1st racenum (which might be "1" or "2" or "3"...who knows!), then grab all racers for 2nd racenum (which might be "2" or "3" or "10"...who knows!) and loop thru each recordset to grab all common racerid's. This can take a while when you have 50+ racenums and 1500+ racerids.
Is there a way to do it with a single query?
Access Query Experts UNITE !

Thanks!
AMACycle
American Motorcyclist Association