So far I figured out code is creating line objects on report to represent a bar code. These lines sit on top of textbox. Textbox must have some data and be Visible for lines to show but then data in textbox shows as well.
Okay, this works.
Set ControlSource of Me.txtPkMS_UserID_BarCode to a single space: =" "
Modify function to pass data as a string and use that for the barcode calc:
Code:
Function Barcode_39(Ctrl As Control, rpt As Report, data As String)
...
'Set handle on control - this comment does not seem appropriate
Barcode = data
...
End Function
Call the function in report:
Result = Barcode_39(Me.txtPkMS_UserID_BarCode, Me, Me.txtPkMS_UserID)
Odd thing is, I found an old db in my collection that uses exact same code as yours and did not have to make these mods to work.