I need to add sequential lap numbers here.
If person's first racenumber is added, it shows lapno =1;
if same person in same Race and racedate do 2nd lap then lapno must show =2
Mainform is called Racesetupf
Subform where table is, is called RaceTimingSF
The Form and subform are linked via the RaceName field. The Racename and Racedate are both unique
Fields:
Racedate = date field
racename = txtfield
Racenumber = txtfield
Racefinishtime = longdate
code i tried in before insert of form:
Me.LapNo = Nz(DMax("LapNo" , "Racetiming T", " [RaceNumber] = '" & Me.[RaceNumber] & "'"), 0) + 1 --- do it with first lapno only
If i have another race on a different date, then process must start all over again for the Racenumbers + lapno
see attached screen capture pics
For Racenumber = 1 on the first lap the lapno = 1
if you enter Racenumber again, then lapno must change to = 2 etc for different racenumbers. This must work for at least 8 laps
pls help
If person's first racenumber is added, it shows lapno =1;
if same person in same Race and racedate do 2nd lap then lapno must show =2
Mainform is called Racesetupf
Subform where table is, is called RaceTimingSF
The Form and subform are linked via the RaceName field. The Racename and Racedate are both unique
Fields:
Racedate = date field
racename = txtfield
Racenumber = txtfield
Racefinishtime = longdate
code i tried in before insert of form:
Me.LapNo = Nz(DMax("LapNo" , "Racetiming T", " [RaceNumber] = '" & Me.[RaceNumber] & "'"), 0) + 1 --- do it with first lapno only
If i have another race on a different date, then process must start all over again for the Racenumbers + lapno
see attached screen capture pics
For Racenumber = 1 on the first lap the lapno = 1
if you enter Racenumber again, then lapno must change to = 2 etc for different racenumbers. This must work for at least 8 laps
pls help
Comment