Hi Guys,
I am trying to create a form with a button that will run a SQL query based on designated field, but I get error code Runtime Error 3024. When I went to check on it, it is telling me to add the dbSQLPassThrough option to the OpenRecordset method, but again I have no idea what that is about. Can someone please help me?
This is the code I have
Private Sub cmdUpdate_Click()
Dim strUpdate As String
strUpdate = "UPDATE me.txttblName SET txtField1 = me.txtValue1.value WHERE txtConditionField = me.txtConditionValue "
DoCmd.RunSQL strUpdate
End Sub
Thank you,
I am trying to create a form with a button that will run a SQL query based on designated field, but I get error code Runtime Error 3024. When I went to check on it, it is telling me to add the dbSQLPassThrough option to the OpenRecordset method, but again I have no idea what that is about. Can someone please help me?
This is the code I have
Private Sub cmdUpdate_Click()
Dim strUpdate As String
strUpdate = "UPDATE me.txttblName SET txtField1 = me.txtValue1.value WHERE txtConditionField = me.txtConditionValue "
DoCmd.RunSQL strUpdate
End Sub
Thank you,