Hi
try
Dim strName as String
strName = Inputbox ("Please enter name")
DoCmd.OpenForm "Employees", , ,"LastName = '" & strName & "'"
You have to be careful when using an apostrophy as a string delimeter, eg the above will fail if you put in a name of O'brien because the apostrophy in the name...