MCTampa
Board Regular
- Joined
- Apr 14, 2016
- Messages
- 97
I have a text box on a form called Text322.
I want enter multiple resort codes in the box and have them serve as the criteria for the RESX column in query 26 - Custom Report.
When I enter a single resort code such as BEE and have the criteria for RESX as [Forms]![Controls]![Text322].[Text] it woks fine.
However when I enter multiple codes such as BEE and SGJ, it returns nothing.
From doing a lot of reading, I understand that I need to write a VBA code to accomplish this. However I am struggling and getting no where.
What do I need to write to transform the values in my unbound text box from BEE, SGJ to "BEE" or "SGJ" in the criteria field of my query.
Thanks,
Mike
I want enter multiple resort codes in the box and have them serve as the criteria for the RESX column in query 26 - Custom Report.
When I enter a single resort code such as BEE and have the criteria for RESX as [Forms]![Controls]![Text322].[Text] it woks fine.
However when I enter multiple codes such as BEE and SGJ, it returns nothing.
From doing a lot of reading, I understand that I need to write a VBA code to accomplish this. However I am struggling and getting no where.
What do I need to write to transform the values in my unbound text box from BEE, SGJ to "BEE" or "SGJ" in the criteria field of my query.
Thanks,
Mike