Why does this work ok?
? DLookup("[LIST_NAME]", "[EMail_Dist_List]", "[RECEPIENTS]='" & fOSUserName & "'")
But when this same line is in a function, it does not work:
Public Function APGroup()
APGroup = DLookup("[LIST_NAME]", "[EMail_Dist_List]", "[RECEPIENTS]='" & fOSUserName & "'")
End Function
fosusername is a function that returns the network username and is my desired criteria for the dlookup function.
Thanks!!
? DLookup("[LIST_NAME]", "[EMail_Dist_List]", "[RECEPIENTS]='" & fOSUserName & "'")
But when this same line is in a function, it does not work:
Public Function APGroup()
APGroup = DLookup("[LIST_NAME]", "[EMail_Dist_List]", "[RECEPIENTS]='" & fOSUserName & "'")
End Function
fosusername is a function that returns the network username and is my desired criteria for the dlookup function.
Thanks!!