coasterman
Registered User.
- Local time
- Today, 06:08
- Joined
- Oct 1, 2012
- Messages
- 59
Hi I am using the api fosusername() function as the source for my search in the FindFirst method. 
	
	
	
		
When I replace the Uname with say "Administrator" it works but no end of rearranging the quotes seems to get me the same results with the variable I am trying to pass as the criteria?
First time with this method so doubtless I am doing something a bit stupid?
Help please!!
Thanks for looking
 
		Code:
	
	
	Dim Uname As String
    Dim rs As Object
    Uname = fOSUserName
    Set rs = Me.Recordset.Clone
    rs.FindFirst "[UISID]" = Uname '
    If Not rs.EOF Then Me.Bookmark = rs.Bookmark
    DoCmd.Echo TrueWhen I replace the Uname with say "Administrator" it works but no end of rearranging the quotes seems to get me the same results with the variable I am trying to pass as the criteria?
First time with this method so doubtless I am doing something a bit stupid?
Help please!!
Thanks for looking
 
	 
 
		 
 
		