Robbyp2001
Registered User.
- Local time
- Today, 07:18
- Joined
- Oct 8, 2011
- Messages
- 143
Hello folks
I have a form with an embedded subform which is based on a query. What I'd like to do is the following: For each new record I'd like the field [Term] to increment by 1 so that with the default value starting at 1, the next record will show 2 and the next will show 3. After 3 has been reached the value will return to 1 for the next new record and the process starts again.
In addition to this there is another field on the subform [Report] which I would like to populate with 1, the next record 2, the next record 3 and so on. Just 1 then 2 then 3 alternating. Is this possible? I'm sure that if it is, someone on here will know the code.
The sequence should be thus:
“student x” [Term] 1 [Report] 1
"student x” [Term] 1 [Report] 2
“student x” [Term] 1 [Report] 3
“student x” [Term] 2 [Report] 1
“student x” [Term] 2 [Report] 2
“student x” [Term] 2 [Report] 3
“student x” [Term] 3 [Report] 1
“student x” [Term] 3 [Report] 2
“student x” [Term] 3 [Report] 3
If this is possible, I’m sure someone on this forum will know how to do it.
Rob
I have a form with an embedded subform which is based on a query. What I'd like to do is the following: For each new record I'd like the field [Term] to increment by 1 so that with the default value starting at 1, the next record will show 2 and the next will show 3. After 3 has been reached the value will return to 1 for the next new record and the process starts again.
In addition to this there is another field on the subform [Report] which I would like to populate with 1, the next record 2, the next record 3 and so on. Just 1 then 2 then 3 alternating. Is this possible? I'm sure that if it is, someone on here will know the code.
The sequence should be thus:
“student x” [Term] 1 [Report] 1
"student x” [Term] 1 [Report] 2
“student x” [Term] 1 [Report] 3
“student x” [Term] 2 [Report] 1
“student x” [Term] 2 [Report] 2
“student x” [Term] 2 [Report] 3
“student x” [Term] 3 [Report] 1
“student x” [Term] 3 [Report] 2
“student x” [Term] 3 [Report] 3
If this is possible, I’m sure someone on this forum will know how to do it.
Rob