Benjamin Bolduc
Registered User.
- Local time
- Today, 08:50
- Joined
- Jan 4, 2002
- Messages
- 169
Hi Everyone,
I have a report that needs to open with the Product.GroupKeepTogether property in the sorting and grouping section either true or false. This would depend on a toggle switch on the form that opens it. I can't seem to find out how to do this in code. I figured I could just do a simple If-Then statment in the reports OnOpen event.
Somthing like:
If Forms![Prod Sched (BP)]![Toggle] = 1 Then
'KeepTogether property for [Product] in the sorting and grouping section' = True
Else
'KeepTogether property for [Product] in the sorting and grouping section' = False
End If
End Sub
Lol, I wish it were this easy. Does anyone have any insights on how I can make this happen?
Thanks!
-Ben
I have a report that needs to open with the Product.GroupKeepTogether property in the sorting and grouping section either true or false. This would depend on a toggle switch on the form that opens it. I can't seem to find out how to do this in code. I figured I could just do a simple If-Then statment in the reports OnOpen event.
Somthing like:
If Forms![Prod Sched (BP)]![Toggle] = 1 Then
'KeepTogether property for [Product] in the sorting and grouping section' = True
Else
'KeepTogether property for [Product] in the sorting and grouping section' = False
End If
End Sub
Lol, I wish it were this easy. Does anyone have any insights on how I can make this happen?
Thanks!
-Ben