I have a table to user with the following fiels:
Username, Fullname, GroupName:
I need to obtain the GroupName of the person who log to the application. For example:
username:vfiguer
Fullname:Vilmarie
GroupName:User
If vfiguer is the Currentuser I need to know the GroupName: It is possible?
I write this code:
Private Sub Form_Current()
Dim strSQL As String
strSQL = "SELECT DISTINCTROW Group FROM UserInfo WHERE Username = CurrentUser()"
Me!txtGroup.Value = strSQL
end sub
But I not obtain the name of the group.
Username, Fullname, GroupName:
I need to obtain the GroupName of the person who log to the application. For example:
username:vfiguer
Fullname:Vilmarie
GroupName:User
If vfiguer is the Currentuser I need to know the GroupName: It is possible?
I write this code:
Private Sub Form_Current()
Dim strSQL As String
strSQL = "SELECT DISTINCTROW Group FROM UserInfo WHERE Username = CurrentUser()"
Me!txtGroup.Value = strSQL
end sub
But I not obtain the name of the group.