I am missing something here. I have a pop up form (loads from the
"main form")that displays multiple command buttons. When a user
selects a particular button, the recordset from the main form should be
updated. Here is the code that I have written but it doesnt work. I
get too few parameters on rs1. Can anyone shed some light on what I am
missing? I appreciate help in advance-Corey
Private Sub APPRVD_Click()
Dim dbs As Database, rs As Recordset, rs1 As Recordset
Set dbs = CurrentDb()
Set rs = dbs.OpenRecordset("QRY_NOTES_UPDATE")
Set rs1 = dbs.OpenRecordset("Select PROVISIONAL_STATUS From
CANDIDATES Where CAN_ID = Forms!CANDIDATE_PROFILE!CAN_ID.Value")
With rs
..AddNew
!CAN_ID = Forms!CANDIDATE_PROFILE!CAN_ID
!NOTE_DATE = Now()
!NOTE = "Status Change To Approved"
!NOTE_TYPE = "Status Change"
!NOTE_CREATOR = UserName()
..Update
..Close
End With
With rs1
..Update
!PROVISIONAL_STATUS = "APPROVED"
..Close
End With
End Sub