R
Rachel
I have a form that runs an append query on close. However I need to have
Date( ) automatically entered as the parameter on the query. Could someone
show me how to add that to the following statement?
Currently it looks like this-
Private Sub Form_Close()
On Error GoTo Err_Handler
DoCmd.SetWarnings True
DoCmd.OpenQuery "qryUpdateEnrolledPatients"
Exit_Point:
DoCmd.SetWarnings True
Exit Sub
Err_Handler:
MsgBox Err.Description, vbExclamation, "Error " & Err.Number
Resume Exit_Point
End Sub
Thanks-
Rachel
Date( ) automatically entered as the parameter on the query. Could someone
show me how to add that to the following statement?
Currently it looks like this-
Private Sub Form_Close()
On Error GoTo Err_Handler
DoCmd.SetWarnings True
DoCmd.OpenQuery "qryUpdateEnrolledPatients"
Exit_Point:
DoCmd.SetWarnings True
Exit Sub
Err_Handler:
MsgBox Err.Description, vbExclamation, "Error " & Err.Number
Resume Exit_Point
End Sub
Thanks-
Rachel