F
F-13
I'm attempting to sort a report from one of two options offered from
an option group [frmSort] on a form [frmSumOrders].
I have added the following code to the "on open" event of the report:
Select Case Forms!frmSumOrders!frmSort
Case 1 'Job
Me.GroupLevel(0).ControlSource = "JobNo"
Case 2 'Company
Me.GroupLevel(0).ControlSource = "Companyname"
End Select
JobNo is a Long Integer, while Companyname is text. Sorting by JobNo
works, however sorting by Companyname gives me a "3464 Data type
mismatch" error message. Could anyone shed any light?
Thanks.
an option group [frmSort] on a form [frmSumOrders].
I have added the following code to the "on open" event of the report:
Select Case Forms!frmSumOrders!frmSort
Case 1 'Job
Me.GroupLevel(0).ControlSource = "JobNo"
Case 2 'Company
Me.GroupLevel(0).ControlSource = "Companyname"
End Select
JobNo is a Long Integer, while Companyname is text. Sorting by JobNo
works, however sorting by Companyname gives me a "3464 Data type
mismatch" error message. Could anyone shed any light?
Thanks.