Go to Report > Properties > Code
Add the following function:
Public Function UserName()
Try
Return Report.User!UserID
Catch
Return "System"
End Try
End Function
Now go to Parameters and set default value of UserName to: =code.UserName()
This will bind your userName function to the actual UserName parameter.
Good luck
0 comments:
Post a Comment