Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to set variable based on a field in a table 1

Status
Not open for further replies.

Blitz

Technical User
Jul 7, 2000
171
US
my variable is intNumberRepeats I can do this:<br>intNumberRepeats = Forms!printform!Timestorepeatrecord<br><br>but then it uses whatever record is open in the form and does not change when the report goes to the next record (Im trying to make a report print the # of pages specified in a field, which is not the same for each record) so when my first record needs 3 copies it takes the variable from that and prints 3 copies for every record. So I though that making the variable based on a table instead of a form might work but I dont know how to do it. Thanks for any help.
 
Didnt work, its still printing the same number of pages for every record.
 
I figured it out already. What I did was put the field in my report and made it invisible then just did <br>Me!Timestorepeatrecord eliminating the form completly. Thanks for your help though.<br><br><br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top