jeran042
Registered User.
- Local time
- Today, 15:21
- Joined
- Jun 26, 2017
- Messages
- 127
Good morning all,
I have a question. I have a field on my form that picks up the forms filter.
Originally, it was not intended to be a visible field, only meant to be a reference in some VBA code.
However now, I believe there is some value in showing the forms criteria, but there is so many characters like [ , ] , ( , or ) that will make this field not user friendly. The best I came up with is a lot of nested REPLACE functions:
.
I know this cant be the best way to approach this. Can Anyone with a more elegant approach, please offer some advice?
Much appreciated
I have a question. I have a field on my form that picks up the forms filter.
Code:
=[Forms]![frm: Report Creator]![frm:Ledger_Detail_Reports_Subform].[Form].[Filter]
Originally, it was not intended to be a visible field, only meant to be a reference in some VBA code.
However now, I believe there is some value in showing the forms criteria, but there is so many characters like [ , ] , ( , or ) that will make this field not user friendly. The best I came up with is a lot of nested REPLACE functions:
Code:
=Replace(Replace(Replace(Replace(Replace([Forms]![frm: Report Creator]![frm:Ledger_Detail_Reports_Subform].[Form].[Filter],"[",""),"]",""),"(",""),")",""),"'","")
I know this cant be the best way to approach this. Can Anyone with a more elegant approach, please offer some advice?
Much appreciated