Hello Inmates
I am not sure if what I want to achieve is actually possible, but here goes.
I have a form that contains a number of combo boxes. Each of the combo boxes lists all the reports in my DB whose report name starts with a particular prefix.
I have given the reports a specific prefix based on the type of report. All the report prefixes are the same length (4 characters). In the example below the reports displayed in this combo box are Customer related.
This system works really well from an end user point of view, however I would like to tidy up the listing in the combo box by not having the prefix (ie first 4 characters) of the report name displayed, so the report cus_COD Customers would be shown in the combo box as COD Customers
The code is on the Row Source control of the combo box, and the Row Source Type is defined as Table/Query.
Is this even possible?
Code:SELECT MSysObjects.Name FROM MsysObjects WHERE (Left$([Name],1)<>"~") And (Left$([Name],4)="cus_") And (MSysObjects.Type)=-32764 ORDER BY MSysObjects.Name;
Thank you in advance for your suggestions.