marcboorman
New member
- Local time
- Today, 02:54
- Joined
- Sep 25, 2006
- Messages
- 6
This is either tough or very simple.
I have an array of record primary keys that need compiling in a report. The reason I have done this is access tries to download the whole table if I run a query!
So I have created a report that has the control sources listed as a function that returns the variables for each field eg "=getRecord(1)". These variables are changed when the last textbox grabs its variable in the vb code and a counter is incremented.
In the detail_print section of the report I am checking a variable that is set to false when the last record has been found. When this happens I set the nextrecord to false.
My problem is that the thing just keeps looping through and printing the records, but the variables on the report dont change even though it is changing the variables from textbox messages. It seems to be a magic 83 times!
I need to tell the report to stop printing the records and that it has reached the end. This has been driving me completely nuts and need some help!
thanks
marc
I have an array of record primary keys that need compiling in a report. The reason I have done this is access tries to download the whole table if I run a query!
So I have created a report that has the control sources listed as a function that returns the variables for each field eg "=getRecord(1)". These variables are changed when the last textbox grabs its variable in the vb code and a counter is incremented.
In the detail_print section of the report I am checking a variable that is set to false when the last record has been found. When this happens I set the nextrecord to false.
My problem is that the thing just keeps looping through and printing the records, but the variables on the report dont change even though it is changing the variables from textbox messages. It seems to be a magic 83 times!
I need to tell the report to stop printing the records and that it has reached the end. This has been driving me completely nuts and need some help!
thanks
marc