M
Michael Conroy
Each employee has a unique string that identifies them and it is the primary
key in the [tbl Employee]. When deleting this person becomes necessary I want
to capture this unique string (EID) and delete the record. However, I am
having some trouble with the syntax. When I run this it asks for a parameter
value and the employee's EID appears in the form just above the entry box.
Any help would be appreciated.
TargetEID = Me.EID
strSql = "Delete * from [tbl Employee] where [tbl Employee].EID = " &
TargetEID & ";"
DoCmd.RunSQL strSQL
key in the [tbl Employee]. When deleting this person becomes necessary I want
to capture this unique string (EID) and delete the record. However, I am
having some trouble with the syntax. When I run this it asks for a parameter
value and the employee's EID appears in the form just above the entry box.
Any help would be appreciated.
TargetEID = Me.EID
strSql = "Delete * from [tbl Employee] where [tbl Employee].EID = " &
TargetEID & ";"
DoCmd.RunSQL strSQL