Sugarmello
IS-IT--Management
Hi,
I have the following code for a delete button:
Private Sub Command77_Click()
On Error GoTo Err_Command77_Click
DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70
DoCmd.DoMenuItem acFormBar, acEditMenu, 6, , acMenuVer70
Exit_Command77_Click:
Exit Sub
Err_Command77_Click:
MsgBox Err.Description
Resume Exit_Command77_Click
End Sub
The question is how to delete from a checked box?
For example if there is a new patient the box will be checked. So when i want to delete all the new patients?
I understand that the code is where DOcmd and that in general coding is : if checked do so... but i have no idea of access code and which names should be used.
Thanks.
I have the following code for a delete button:
Private Sub Command77_Click()
On Error GoTo Err_Command77_Click
DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70
DoCmd.DoMenuItem acFormBar, acEditMenu, 6, , acMenuVer70
Exit_Command77_Click:
Exit Sub
Err_Command77_Click:
MsgBox Err.Description
Resume Exit_Command77_Click
End Sub
The question is how to delete from a checked box?
For example if there is a new patient the box will be checked. So when i want to delete all the new patients?
I understand that the code is where DOcmd and that in general coding is : if checked do so... but i have no idea of access code and which names should be used.
Thanks.