Hi all,
I am having alot of difficulty. I'm writing my first Access application using a form and a report.
The report is to contain 12 ID cards on it laid out like so on the report...
1 2
3 4
5 6
7 8
9 10
11 12
I have a list view which I am getting the data from. You can select as many to print as you wish. I am using a different array to hold each of the following...Name, Class, ID number. I also have a photo for each ID number, in the same dir as the app.
The first line of the code works fine. It pops the picture into the image. How do I populate the text box on the first ID card with the first element of the array and the second with the second? And so on?
objAccess.Reports(0).Controls!ImgPupil.Picture = "long_michelle-02-0080.jpg"
objAccess.Reports(0).Controls!txtClass = g_asClassName(j)
objAccess.Reports(0).Controls!txtName = g_asNames(j)
Any help very very gratefully received!!
Thanks,
Robin
I am having alot of difficulty. I'm writing my first Access application using a form and a report.
The report is to contain 12 ID cards on it laid out like so on the report...
1 2
3 4
5 6
7 8
9 10
11 12
I have a list view which I am getting the data from. You can select as many to print as you wish. I am using a different array to hold each of the following...Name, Class, ID number. I also have a photo for each ID number, in the same dir as the app.
The first line of the code works fine. It pops the picture into the image. How do I populate the text box on the first ID card with the first element of the array and the second with the second? And so on?
objAccess.Reports(0).Controls!ImgPupil.Picture = "long_michelle-02-0080.jpg"
objAccess.Reports(0).Controls!txtClass = g_asClassName(j)
objAccess.Reports(0).Controls!txtName = g_asNames(j)
Any help very very gratefully received!!
Thanks,
Robin