Sheesh – I run into more problems trying to do simple things!<br>
<br>
I'm designing a data report to print test data from testing circuit boards. The serial number and job number of the tested board must appear on the test report. This is usually not known 'til run time. The test program prompts the user to enter the serial number and job number through pop-up dialog boxes. S/n and j/n are stored in variables until the test report is printed.<br>
<br>
I want the s/n and j/n to appear in the report header. VB allows only labels (not text boxes) in the header section. So it seems a simple task to set the .Caption property of the labels to the value of the stored variables when the report is printed.<br>
<br>
NOT!<br>
<br>
Have tried to set values for captions on labels in Activate or Initialize events when Data Report is opened, but VB won't let me do that, and won't tell me why.<br>
<br>
Got holes in my scalp from scratching my head on this one.<br>
<br>
Any suggestions?<br>
<br>
I'm designing a data report to print test data from testing circuit boards. The serial number and job number of the tested board must appear on the test report. This is usually not known 'til run time. The test program prompts the user to enter the serial number and job number through pop-up dialog boxes. S/n and j/n are stored in variables until the test report is printed.<br>
<br>
I want the s/n and j/n to appear in the report header. VB allows only labels (not text boxes) in the header section. So it seems a simple task to set the .Caption property of the labels to the value of the stored variables when the report is printed.<br>
<br>
NOT!<br>
<br>
Have tried to set values for captions on labels in Activate or Initialize events when Data Report is opened, but VB won't let me do that, and won't tell me why.<br>
<br>
Got holes in my scalp from scratching my head on this one.<br>
<br>
Any suggestions?<br>