doctorswamp
Technical User
I'm trying to get update a field on a form depending on entries into a subform field.
Example :
- text field called Action in subform sfmHistory
- yes/no field called MakeContact in main form frmCompanies
If Action field value is 'Phone' I'd like to trigger 'yes' in the MakeContact field.
Have experimented with After Update event along the lines
If me.Action = "Phone" then
forms!frmCompanies.MakeContact = -1
end if
but it gives an error.
Is this just bad syntax or am I way off beam?
Thanks in anticipation
Example :
- text field called Action in subform sfmHistory
- yes/no field called MakeContact in main form frmCompanies
If Action field value is 'Phone' I'd like to trigger 'yes' in the MakeContact field.
Have experimented with After Update event along the lines
If me.Action = "Phone" then
forms!frmCompanies.MakeContact = -1
end if
but it gives an error.
Is this just bad syntax or am I way off beam?
Thanks in anticipation