Solved How to make count series record 1 2 3 . . [SubForm] (1 Viewer)

SalmanZeiad

Member
Local time
Tomorrow, 01:14
Joined
Oct 30, 2017
Messages
112
View attachment 84258
Annotation 2020-08-13 125059.jpg
 
Last edited:

CJ_London

Super Moderator
Staff member
Local time
Today, 23:14
Joined
Feb 19, 2013
Messages
16,610
Your example does not go far enough - is row 1 always 1, regardless of order of the records, or is there a meaning to it based on for example the order of dates or other value.

i.e. from this
Value Row
A............1
B............2
C............3

do you want
Value Row
C............3
B............2
A............1

or

Value Row
C............1
B............2
A............3
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Tomorrow, 06:14
Joined
May 7, 2009
Messages
19,229
add Autonumber (ID) to your table.

create a Query to generate the serials:

select field1, dcount("1", "yourTable", "ID<=" & [ID]) as Seqn from yourTable Order by 2 Asc;

use this Query as the recordsource of your form.
 

SalmanZeiad

Member
Local time
Tomorrow, 01:14
Joined
Oct 30, 2017
Messages
112
add Autonumber (ID) to your table.

create a Query to generate the serials:

select field1, dcount("1", "yourTable", "ID<=" & [ID]) as Seqn from yourTable Order by 2 Asc;

use this Query as the recordsource of your form.


CAN YOU MAKE IT PLZ..
 

Attachments

  • test.accdb
    640 KB · Views: 70

SalmanZeiad

Member
Local time
Tomorrow, 01:14
Joined
Oct 30, 2017
Messages
112
Your example does not go far enough - is row 1 always 1, regardless of order of the records, or is there a meaning to it based on for example the order of dates or other value.

i.e. from this
Value Row
A............1
B............2
C............3

do you want
Value Row
C............3
B............2
A............1

or

Value Row
C............1
B............2
A............3
NO
 

CJ_London

Super Moderator
Staff member
Local time
Today, 23:14
Joined
Feb 19, 2013
Messages
16,610
two choices of answer - so no idea what 'no' means
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Tomorrow, 06:14
Joined
May 7, 2009
Messages
19,229
see this sample.
 

Attachments

  • test (2).zip
    36.2 KB · Views: 89

Users who are viewing this thread

Top Bottom