A
aceavl via AccessMonster.com
hi!
i need to Update a field in a table from a cmd button.
i know how to do it with a simple WHERE:
DoCmd.RunSQL "UPDATE tblEmp SET tblEmp.EmpRecords = -1 WHERE " &
strFilterNoCancelados & ""
but this one i have no clue, hope someone can help me.
the form is a serch form from Allen Browne so i need to update only the
filtered records.
i have tblEmp (employees) , tblCo (company) and tblPay (payments made).
The form source is a query: (qryAllEmpCo)
SELECT tblEmp.EmpIDPK, tblCo.CoIDPK, tblCo.CoNombre, tblEmp.CoIDFK, tblEmp.
EmpNombre, tblEmp.EmpMonto, tblEmp.EmpRecords FROM tblCo INNER JOIN tblEmp ON
tblCo.CoIDPK = tblEmp.CoIDFK;
i want to UPDATE the field (tblEmp.EmpRecords) but only the employees that
haven't finished paying or haven't paid anything
the field to update is a yes/no field and i want to update it to -1
any help is appreciated, thank you!
i need to Update a field in a table from a cmd button.
i know how to do it with a simple WHERE:
DoCmd.RunSQL "UPDATE tblEmp SET tblEmp.EmpRecords = -1 WHERE " &
strFilterNoCancelados & ""
but this one i have no clue, hope someone can help me.
the form is a serch form from Allen Browne so i need to update only the
filtered records.
i have tblEmp (employees) , tblCo (company) and tblPay (payments made).
The form source is a query: (qryAllEmpCo)
SELECT tblEmp.EmpIDPK, tblCo.CoIDPK, tblCo.CoNombre, tblEmp.CoIDFK, tblEmp.
EmpNombre, tblEmp.EmpMonto, tblEmp.EmpRecords FROM tblCo INNER JOIN tblEmp ON
tblCo.CoIDPK = tblEmp.CoIDFK;
i want to UPDATE the field (tblEmp.EmpRecords) but only the employees that
haven't finished paying or haven't paid anything
the field to update is a yes/no field and i want to update it to -1
any help is appreciated, thank you!