Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

refering to a record in a table

Status
Not open for further replies.

Spyridon

Technical User
Jun 27, 2003
45
US
Here's what I'm trying to do, have a SQL statement Insert info into a table, and then verify that info from what someone typed in from a text box. My problem is coming in at "If LocalUser.Password =......" It tells me an object is needed. What's the syntax to type in to pull up this record in this manner? Thanks for any help!

Dim SQL As String
Dim SQL2 As String


SQL = "INSERT INTO LocalUser (Password) " & _
" SELECT Password " & _
" FROM Employee " & _
" WHERE [UserID] = [Forms]![FoLogin]![txtUserID]"

DoCmd.RunSQL SQL



If LocalUser.Password = [Forms]![FoLogin]![txtPassword] Then
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top