...need help coding this, I'm very new to VBA coding.
I have a button control on a form that needs to perform an action based on the value of a field in a table that is not bound to the form.
Access table name is "Match" field name is "Mtc" (Text field). All values in the "Mtc" field are the same (expected value is "3StateD1").
How do I refer to the table/field, and write the If?
If xxxxxxxxx Then
DoCmd.OpenForm "test"
Else
DoCmd.DeleteObject acTable, "Match"
End If
Thank you,
Reg999
I have a button control on a form that needs to perform an action based on the value of a field in a table that is not bound to the form.
Access table name is "Match" field name is "Mtc" (Text field). All values in the "Mtc" field are the same (expected value is "3StateD1").
How do I refer to the table/field, and write the If?
If xxxxxxxxx Then
DoCmd.OpenForm "test"
Else
DoCmd.DeleteObject acTable, "Match"
End If
Thank you,
Reg999