J
John S
Hi,
Thanks to Clifford, Armen and Geoff for the recent advice. I have taken-up
all the suggestions made and the db works well with one ‘People’ table and a
‘Status’ field.
I have come across another teething problem. I want to sort records in
ascending order by a certain field on a subform when the user clicks a
Command button on the main form.
I have set the Command button to run the following code:
“Private Sub Command19_Click()
On Error GoTo Err_Command19_Click
Forms!Events!Volunteers.Form!Name.SetFocus
DoCmd.DoMenuItem acFormBar, acRecordsMenu, 1, 0, acMenuVer70
Exit_Command19_Click:
Exit Sub
Err_Command19_Click:
MsgBox Err.Description
Resume Exit_Command19_Click
End Subâ€
I get an error message saying that the “command or action ‘sort ascending’
isn’t available nowâ€. I believe this is because the command button has
retained the focus.
I should be grateful if anyone can advise me of a better way to do this.
Regards,
John.
Thanks to Clifford, Armen and Geoff for the recent advice. I have taken-up
all the suggestions made and the db works well with one ‘People’ table and a
‘Status’ field.
I have come across another teething problem. I want to sort records in
ascending order by a certain field on a subform when the user clicks a
Command button on the main form.
I have set the Command button to run the following code:
“Private Sub Command19_Click()
On Error GoTo Err_Command19_Click
Forms!Events!Volunteers.Form!Name.SetFocus
DoCmd.DoMenuItem acFormBar, acRecordsMenu, 1, 0, acMenuVer70
Exit_Command19_Click:
Exit Sub
Err_Command19_Click:
MsgBox Err.Description
Resume Exit_Command19_Click
End Subâ€
I get an error message saying that the “command or action ‘sort ascending’
isn’t available nowâ€. I believe this is because the command button has
retained the focus.
I should be grateful if anyone can advise me of a better way to do this.
Regards,
John.