For Multiple Fields
- UPDATE TableName
-
SET Field1=NewValue1, Field2=NewValue2, etc
.
Mary
Hi Guys
I have used the following code
-
Dim strSQL As String
-
-
strSQL = "UPDATE Applications " & _
-
"SET Owner = " & Me.NewOwner & " , Responsible = " & Me.NewResponsbile & " " & _
-
"WHERE Application = " & Me.Application & ";"
-
DoCmd.RunSQL strSQL
-
-
But there is error message saying 'Object doesn't support this property or method "
Any idea why????
Note: Applications is the name of table, this table has 4 fields ApplicationID, Application, Owner, Responsible
The NewOwner is the name of the textbox that I have created for the user to enter the new Owner.
I just want to update the Owner and Responsible fields
Thanks