G
Guest
What am I doing wrong??? I am trying to select all the records in a subform
when the user clicks on an option button. Here's my code.
Private Sub frmSelectDeselect_Click()
On Error GoTo Err_Handler
Me.frmPricing_Subform.SetFocus
If frmSelectDeselect = 1 Then 'select all
SendKeys "^{A}^{A}"
End If
Exit_Here:
Exit Sub
Err_Handler:
MsgBox Err.Description
Resume Exit_Here
End Sub
when the user clicks on an option button. Here's my code.
Private Sub frmSelectDeselect_Click()
On Error GoTo Err_Handler
Me.frmPricing_Subform.SetFocus
If frmSelectDeselect = 1 Then 'select all
SendKeys "^{A}^{A}"
End If
Exit_Here:
Exit Sub
Err_Handler:
MsgBox Err.Description
Resume Exit_Here
End Sub