G
gmazza via AccessMonster.com
Hi there,
I have a table with 3 columns: TrialId, SequenceNo, ValueNo
Here is some sample data:
TrialId SequenceNo ValueNo
1 1 0
1 1 1
1 1 2
1 2 0
1 2 1
When inserting a new record for the current trial and sequence, I need the
ValueNo to increase by 1.
So if I insert a new value for TrialId 1 and SequenceNo 1, I want the ValueNo
to be 3.
I tried doing a DLookup for this but I can't get it to goto the last record
of TrialId 1 and SequenceNo 1 and adding 1 to the ValueNo.
Is there an easier way?
Thanks!
I have a table with 3 columns: TrialId, SequenceNo, ValueNo
Here is some sample data:
TrialId SequenceNo ValueNo
1 1 0
1 1 1
1 1 2
1 2 0
1 2 1
When inserting a new record for the current trial and sequence, I need the
ValueNo to increase by 1.
So if I insert a new value for TrialId 1 and SequenceNo 1, I want the ValueNo
to be 3.
I tried doing a DLookup for this but I can't get it to goto the last record
of TrialId 1 and SequenceNo 1 and adding 1 to the ValueNo.
Is there an easier way?
Thanks!