Hi, Basically i have an unbound form which is populated using recordsets. When I i want to edit i use the first save button which works fine on its own. But i would like to make multiple edits. In the combo box i have StudentID, Name. All i need 2 edit is the Score for a student. I Hope this is clear. Thanks
Code:
Private Sub cmdSave_Click()
If isBlank(txtScore.Value) Then
MsgBox "Please enter a Score", vbExclamation, "Cannot Save"
Else
rstEditQ.Edit
rstEditQ("Score") = txtScore.Value
rstEditQ.Update
Call cmdSave2_Click
End If
End Sub
Private Sub cmdSave2_Click()
Dim rstEditprod As DAO.Recordset
Set rstEditprod = dbase.OpenRecordset("tblAQ", dbOpenDynaset)
If Not IsNull(cboProd1.Value) Then
rstEditprod.Edit
rstEditprod("Score") = txtScore.Value
rstEditprod.Update
If IsNull(cboProd1.Value) Then
rstEditprod.Edit
rstEditprod.CancelUpdate
rstEditprod.Close
End If
End If
End Sub