label printing problem

J

janvds

I have a table with a few fields (ID, name, description, ...., stock)
I need a query with the amount of lines from the stock field.

So if stock = 5 for the first item, I would like to have 5 rows of tha
item. If stock = 2 for the second record, I need 2 rows for that one
If stock <1, that record should not show in the list

Anyone knows how to solve this
 
D

Duane Hookom

I would create a simple table of numbers [tblNums] with a single numeric
field [Num]. Add values from 1 through your maximum stock value.

Add this table to your query and set the criteria under the Num field to
<=[StockField]
 

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

Top