I see, you are using a global variable instead of having to pass the ID to the function directly.
What I would do would be to put a debug.print statement in where shown in blue to make sure the userID is being populated correctly.
Code:
Function FindUserId()as Boolean
Dim db As Database
Dim rs As Recordset
Dim lngCount As Integer
Dim strCriteria As String
Set db = CurrentDb
Set rs = CurrentDb.OpenRecordset("tblUserId", dbOpenDynaset)
x = GetNTUser
strCriteria = "[userid]= '" & x & "'"
debug.print strCriteria
rs.FindFirst strCriteria
If rs.NoMatch Then
FindUserId = False
Else
FindUserId = True
End If
End Function
You would attempt to run the function and then check the immediate window in VBA to see what is returned by the debug.print statement