Never mind everyone, i figured it out. Rather than calling the query as a dataset, i did a docmd.RunSql with the original query pasted into the sql statement (adjusting the double quotes etc as needed for SQL) passing the parameter in that statement. I did a docmd.setwarnings false before and...
dhookom, perhaps i should explain that this started as code to prompt the user for the number of blank labels to skip, and then the number of copies. Supports a single label quite well. The idea came from them that based on the quantity of product, we know how many labels we will need so...
The problem is that if i don't use code, all labels get the same quantity. I have a table that has the data for label 1, i need 20, then label 2 has a quantity of 35 ... I have to loop through to get each quantity for that particular label data.
The code i am having trouble with is below, but here is the gist of my problem. I run a label report that pulls the number of labels from a field in a table. This all works without a problem. The issue was when the table has more than one record, the code would only use the number of copies...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.