Hi,
I'm trying to put a location Id in my staff table where the staff members pay number is equal to a textbox in a subform on my main form. I think I am missing something in the first part of the "where paynum" clause. I am getting a message saying "Object doesn't support this property or method"
CurrentDb.Execute "UPDATE tbltruststaff SET S_LocationId = '" & Forms!frmmain!List5 & "'&" _
& "WHERE paynum = '" & Forms!frmmain!tblrecordsubform.Paynum & "'"
Can anyone help me with this.
I'm trying to put a location Id in my staff table where the staff members pay number is equal to a textbox in a subform on my main form. I think I am missing something in the first part of the "where paynum" clause. I am getting a message saying "Object doesn't support this property or method"
CurrentDb.Execute "UPDATE tbltruststaff SET S_LocationId = '" & Forms!frmmain!List5 & "'&" _
& "WHERE paynum = '" & Forms!frmmain!tblrecordsubform.Paynum & "'"
Can anyone help me with this.