Making serial in report:

1

123

Making serial in report:
To make easy serial on Each Group You can use the following code
Control source =1
Running sum = over group
I there any way to control this serial if is there condtion for example if
job child or infant don't put serial for this person
example
serial name job
1 a dr
b infant
2 cd dr
sd child
3 sd dr
and so on
I hope u understand my question:
 
M

Marshall Barton

123 said:
Making serial in report:
To make easy serial on Each Group You can use the following code
Control source =1
Running sum = over group
I there any way to control this serial if is there condtion for example if
job child or infant don't put serial for this person
example
serial name job
1 a dr
b infant
2 cd dr
sd child
3 sd dr
and so on


First add a text box named txtAdult to the detail section.
Use an expression like:
=IIf(job = "infant" Or job = "child", 0, 1)

Then, instead of setting your serial text box to the
expression =1, set it to:
=txtAdult

To hide the serial number for the child type records, add a
line of code the detail section's Format event:
Me.txtSerial.Visible = (Me.txtAdult = 1)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top