Hi "CheryIF"
Thanks for your clear reply - much appreciated.
I'm wondering if users may be able to set number of labels required.
This may be achieved (I'm working on this one) via say:-
Reset report to a single ID.
create a new table just for 'numbers of' report/labels, with required fields + new Date/Time field.
If then, on a form users can enter via a textbox or combo, the number required
A public variable is set to required number in textbox/combo = 'X'.
A command button then has On_Click event to run code - outlined below:
Button would then OpenRecordset = (Original Reports recordsource - Query/Table)
Then Loops thru the ID's
Dim Y = Now()
In Loop -
Adds to new table 'X' number of required ID records (+ other stuff, + Y to new Date/Time field) to each row,
- via another Recordset Loop
Then - open report using OpenReport method
The Date/Time would act as a index and criteria for the reports' query result - ie Max(Date/TIme)
The report would run from a new query which includes new table, using the Max of date/time field.
Just an idea - not tested - but would, when successful, be more flexible to users. ie they can enter number of labels required
Downside:
(1) new table to manage
(2) Loops in VBA recordsets may slow things down.
What do you think???
[This message has been edited by Ron Bell (edited 08-13-2000).]