How do I print (Qty) of labels of one record

G

Guest

I have a sales order form that when you enter a quantity (field name =
[Item_Qty]) it needs to print off [Item_Qty] of labels for that particular
order.
to complicate the problem even more, there can be several diffenet Items on
an Order, each with a different [Item_Qty]

Any suggestions will be greatly appreciated

Thanks Tim
 
D

Duane Hookom

Make a table (tblNums) with a single numeric field (Num) and records 1-[Max
of your quanity]. You can then use this table in a query with your sales
detail. The following is a similar query that does this with the Order
Details table in Northwind:

SELECT OrderID, ProductID, tblNums.Num, Quantity
FROM [Order Details], tblNums
WHERE OrderID=10248 AND Num Between 1 And [Quantity]
ORDER BY ProductID, Num;
 

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