How can I make my append query use the selected record from my form? I don't want to do a everything, i.e. all records append.
This code fires on the click event, it is a checkbox. The append query which is named Qappendtoregister has NO criteria. Primary Key for table form is based on is EventID and Primary Key to table where data is going to is RegID .
Private Sub enter_Click()
DoCmd.Beep
If Me.Dirty Then Me.Dirty = False
DoCmd.SetWarnings False 'Purpose: Append Scheduled Event To Check Register.
DoCmd.OpenQuery "Qappendtoregister"
DoCmd.RunCommand acCmdSaveRecord
If Me.Dirty Then Me.Dirty = False
DoCmd.SetWarnings True
End Sub
If I use this code in the query, will it only then use one single record and only use the single records ID? What then when I want to do multiple records?
[Forms]![frmEvent]![EventID]