Beany
Registered User.
- Local time
- Today, 00:21
- Joined
- Nov 12, 2006
- Messages
- 155
Hi,
I have 3 unbound textboxes (user,department,location).. i am using a button (AddUser) to insert info from these 3 textboxes into the Table User..
I am using the following code for the button:
but i am getting the following error:
Compile Error:
Wrong Number of arguments or invalid property assignment
Why is this? Can someone please tell me??
I have 3 unbound textboxes (user,department,location).. i am using a button (AddUser) to insert info from these 3 textboxes into the Table User..
I am using the following code for the button:
Code:
Private Sub AddUser_Click()
Dim strSQL As String
strSQL = "INSERT INTO User (User, Department, Location) VALUES (" & Me.User.Value & "," & Me.Department.Value & "," & Me.Location.Value & ");"
DoCmd.RunSQL "strSQL", , acEdit
End Sub
but i am getting the following error:
Compile Error:
Wrong Number of arguments or invalid property assignment
Why is this? Can someone please tell me??