set rst = currentdb . open recordset(" select * from table name where user id = " &; "User ID" if the user ID is an integer field.
set rst = currentdb . open recordset(" select * from table name where user ID = ' " & UserID & amp; If the user ID is a character field.