P
paulevans82
I have a form frmProgramEnrol based on qryProgramEnrol which displays
enrolments in a professional development course.
I would like to use command buttons in the footer to sort the records (I
will have three buttons, Sort by Name, Sort by Date, Sort by Status).
I used the following code:
Private Sub cmdSortName_Click()
Me.OrderBy = "[Person]"
Me.OrderByOn = True
End Sub
But when I click the button, I get the message
"The expression On Click you entered as the event property setting produced
the following error: Invalid outside procedure".
I'm pretty sure I'm missing something quite straightforward here. I would
appreciate your help
enrolments in a professional development course.
I would like to use command buttons in the footer to sort the records (I
will have three buttons, Sort by Name, Sort by Date, Sort by Status).
I used the following code:
Private Sub cmdSortName_Click()
Me.OrderBy = "[Person]"
Me.OrderByOn = True
End Sub
But when I click the button, I get the message
"The expression On Click you entered as the event property setting produced
the following error: Invalid outside procedure".
I'm pretty sure I'm missing something quite straightforward here. I would
appreciate your help