ProAdjuster
Technical User
- Aug 31, 2007
- 12
I am trying to insert values into multiple columns within a related table through a button on my form. When I try to use this code, I get an error that says an "=" is expected.
Code:
Private Sub Command13_Click()
'Add Contact Status Log
Insert
INTO dbo_contactstatuslog(Contact, Status, Date)
[red] VALUES (contacttempstore.contact,contact.status + 1,Now())[/red]
'Update Contact
Update dbo_contact
Set Status = [Status] + 1
WHERE Contact = contacttempstore.Contact
End Sub