E
Emmanuel
Access cannot execute user defined functions on reports.
I am using the following simple function in report code:
Function doit() as string
Dim str as string
str = Me![UserName] & " " & Me![UserID]
doit = str
End Function
Then I put a tsxtbox on my report and set its Control
Source property to =doit()
Access returns with an error message that it can't find
the field 'UserName' I have set the Record source of the
report to the appropriate table. If you simply
put 'UserName' as the Control source it works. What is
going on here. I will appreciate your help
Emmanuel
I am using the following simple function in report code:
Function doit() as string
Dim str as string
str = Me![UserName] & " " & Me![UserID]
doit = str
End Function
Then I put a tsxtbox on my report and set its Control
Source property to =doit()
Access returns with an error message that it can't find
the field 'UserName' I have set the Record source of the
report to the appropriate table. If you simply
put 'UserName' as the Control source it works. What is
going on here. I will appreciate your help
Emmanuel