How to make display multiple row of a table according to quantity

Majid Azimi

New member
Local time
Today, 19:44
Joined
Jun 23, 2023
Messages
1
Hello guys
how can I Repeat records according to a quantity field in table of access?
for example I have a table with 2 columns " name" and "quantity" like below:
in "name" column I have " jack " value and in "quantity" column I have "5" value
and I want repeat "jack" value 5 times in table
 
SQL:
SELECT
   D.XName,
   D.Quantity
FROM
   tblData AS D,
   T999 AS T
WHERE
   T.I < D.Quantity
T999 would have to be created once. It is an auxiliary table with a field I (Long) containing the numbers from 0 to 999 consecutively. Such a table can be used in many ways.
 
No understanding what you are trying to do.

What is the purpose of your Db?
 

Users who are viewing this thread

Back
Top Bottom