access - report record printing help please!
access - report record printing help please!
Author
Discussion

Davi

Original Poster:

17,153 posts

251 months

Friday 7th September 2007
quotequote all
I have a database of names and addresses which are filtered through a query to bring up only those with a certain reference. These need to be printed onto labels, but as there are thousands of them we need to print them a few hundred at a time.

I needed to automate this so that numpties can do it, so made a form where you enter "from" and "to" values so that you anyone can run off a set amount, say for example 1-200, then later the next 201-400 and so on. An updateable field remembers the higher of the last number printed so it's not duplicated.

Originally I wrote a bit of code so this worked off the unique reference number - only problem being that all fields pre-filtering have the unique reference, so after filtering you'll get records 1,2,6,26,47,68,120 and so on - so asking to print 1-200 might actually only print 20 labels after filtering, 200-400 may print 112 labels and so on.

What's a nice simple way of getting around this? Probably being really thick but it's Friday and I really can't be arsed with it!!!