H
h2fcell
Hello,
I have a query that returns a list of records based on a date Criteria like
[Forms]![DateMsgboxRD]![SelectDate]
Depending on the date selected the query may return a different number of
records.
I would like the Query to contain a field â€Num†with an expression that
gives me a sequential line number for each record.
Example: If [Forms]![DateMsgboxRD]![SelectDate] = 2/25/2009
I get the below list.
DiscussionTopic DiscussionDate DiscussionSummary ID
Appointment 2/25/2009 Meeting with John. 4
Appointment 2/25/2009 Meeting with Paul. 12
Payments 2/25/2009 Payment of the listed claims. 15
Refunds 2/25/2009 Refunds 20
Refunds 2/25/2009 Overpayment refunds. 21
Below is what I’d like to see.
Num DiscussionTopic DiscussionDate DiscussionSummary
ID
1 Appointment 2/25/2009 Meeting with John. 4
2 Appointment 2/25/2009 Meeting with Paul. 12
3 Payments 2/25/2009 Payment of the listed claims. 15
4 Refunds 2/25/2009 Refunds 20
5 Refunds 2/25/2009 Overpayment refunds. 21
I tride using something like
Num: = [Num] + 1
But got a Circular reference error.
Is there a simple function I’m over looking?
I have a query that returns a list of records based on a date Criteria like
[Forms]![DateMsgboxRD]![SelectDate]
Depending on the date selected the query may return a different number of
records.
I would like the Query to contain a field â€Num†with an expression that
gives me a sequential line number for each record.
Example: If [Forms]![DateMsgboxRD]![SelectDate] = 2/25/2009
I get the below list.
DiscussionTopic DiscussionDate DiscussionSummary ID
Appointment 2/25/2009 Meeting with John. 4
Appointment 2/25/2009 Meeting with Paul. 12
Payments 2/25/2009 Payment of the listed claims. 15
Refunds 2/25/2009 Refunds 20
Refunds 2/25/2009 Overpayment refunds. 21
Below is what I’d like to see.
Num DiscussionTopic DiscussionDate DiscussionSummary
ID
1 Appointment 2/25/2009 Meeting with John. 4
2 Appointment 2/25/2009 Meeting with Paul. 12
3 Payments 2/25/2009 Payment of the listed claims. 15
4 Refunds 2/25/2009 Refunds 20
5 Refunds 2/25/2009 Overpayment refunds. 21
I tride using something like
Num: = [Num] + 1
But got a Circular reference error.
Is there a simple function I’m over looking?