I have a table name security, in this table i have two feilds one username the other password. on the main form i want the user to enter the username and password and then click a command button that will check to see if the username and password on main form are equal to the username and password in the security table. I can not seem to get this to work .