I have a report that overprints individual letters onto a pre printed form - much like an English passport application form. The individual letters HAVE to be within the small boxes otherwise the form gets rejected by our NHS. I have spent hours getting the letters to line up correctly only to find a week later the positions have moved and I have to redo the report. Can it be Access that is at fault in changeing the parameters within onLoad event, or would there be a better way to achieve the correct result?
I am using code along the lines of, to position each letter:
Controls("F" & C2) = UCase(Mid([FName], (C2), 1)) 'FirstName
Controls("F" & C2).Top = 1.15 * TwipsPerCM
Controls("F" & C2).Left = (6.6 + (C2 * 0.453)) * TwipsPerCM
Next
As you can see, I take the field value, loop through separating the string into individual letters and then printing it in the set position.
Any thoughts or help will be much appreciated.
Thanks,
Lewy
I am using code along the lines of, to position each letter:
For C2 = 1 To 22Controls("F" & C2) = UCase(Mid([FName], (C2), 1)) 'FirstName
Controls("F" & C2).Top = 1.15 * TwipsPerCM
Controls("F" & C2).Left = (6.6 + (C2 * 0.453)) * TwipsPerCM
Next
As you can see, I take the field value, loop through separating the string into individual letters and then printing it in the set position.
Any thoughts or help will be much appreciated.
Thanks,
Lewy