Delete Record

D

Dave Hawks

I want to delete a record in fldPlayer in frmTable1 based on an If Then
Statement in a second form frm Authenticate.
Can anyone suggest some suitable code.

Thanks
 
M

Michel Walsh

DoCmd.RunSQL "DELETE * FROM tableNameHere WHERE
flfPlayer=FORMS!frmTable1!fldPlayer "




should do.


Hoping it may help,
Vanderghast, Access MVP
 
D

Dave Hawks

Mike
Thanks for your help.
--
Dave Hawks


Michel Walsh said:
DoCmd.RunSQL "DELETE * FROM tableNameHere WHERE
flfPlayer=FORMS!frmTable1!fldPlayer "




should do.


Hoping it may help,
Vanderghast, Access MVP
 
Top