Display the character in report (1 Viewer)

libin04

New member
Local time
Today, 05:44
Joined
Aug 10, 2022
Messages
14
Hi Team,


please help me with this DB .

I would display the name in the report, which should display until the text box value fail. I mean if i give 5 in the count textbox field then the name should display five times in the report. i am attaching DB can you please have a look and revert it.
 

Attachments

  • JLR.accdb
    608 KB · Views: 88

Gasman

Enthusiastic Amateur
Local time
Today, 05:44
Joined
Sep 21, 2011
Messages
14,447
I cannot even open the form in any view?, so I have no idea what you have done. :(
1665067514654.png

I would probably put the 5 records into a temp table and use that as the report source?
 

libin04

New member
Local time
Today, 05:44
Joined
Aug 10, 2022
Messages
14
I cannot even open the form in any view?, so I have no idea what you have done. :(
View attachment 103735
I would probably put the 5 records into a temp table and use that as the report source?
It is opening for me Gasman. can you check one more time
 

Attachments

  • JLR.accdb
    608 KB · Views: 80

libin04

New member
Local time
Today, 05:44
Joined
Aug 10, 2022
Messages
14

Gasman

Enthusiastic Amateur
Local time
Today, 05:44
Joined
Sep 21, 2011
Messages
14,447
It is opening for me Gasman. can you check one more time
Nope still the same.
I would put the number of records you need into a temp table and use that as the source?
A simple loop with an Append query sql code
 

Gasman

Enthusiastic Amateur
Local time
Today, 05:44
Joined
Sep 21, 2011
Messages
14,447
If you do not want to create a temp table, then you could create a Repeat table that will hold as many records as you wish to repeat.
Then create a cartesian join between that table and yours.

Use that query as the source of the report. That is what I would probably do, now that I have realised this other method.

I have hardcoded a number here, you would use what is on your form.

Code:
SELECT Table1.Field1, tblRepeat.RepeatNum
FROM Table1, tblRepeat
WHERE (((tblRepeat.RepeatNum)<=5));
1665135573619.png

You do not have to include the repeat number.
1665135679088.png
 

Users who are viewing this thread

Top Bottom