Gary Level: Sage
 Registered: 27-11-2005 Posts: 50
|
Delete specfic record Query???
Hi there,
Let say I wish to delete a row of record which contains StudentID, ModuleID and SessionID
My delete query is as below,
rs.Open "DELETE FROM V_ModuleReg WHERE ModuleID ='" & frmModuleReg.txtModuleID.Text & "'"
It works fine but it will delete all the students records which are having the same ModuleID since I only delete it according to ModuleID...
May I know how should I write the sql query if I wish to delete it according to ModuleID and StudentID
Thank you
Gary
|