bgibsonIYD
Technical User
I have a form, with a tab control on it with 4 tabs (Lists, Labels, Communities, Other). On each of those tabs I have a list box. In the row source of the list box I have the following Code (this one is for the tab called "Lists". All the reports I have begin with 3 letters according to how they are categorized to go into the tabs-lst="Lists", lbl="Labels", cmty="Communities", and otr=Other":
SELECT Right([name],Len([Name])-3) AS NameWithoutList FROM msysobjects WHERE ((([msysobjects].[Type])=-32764) And ((Left([name],3))="lst"
);
This was to pull all the reports that have the three letter code "lst" in front.
Now I would like to put an event procedure on the double click proptery to open the report when I double click on the selection in the box. My problem is that each time I try to put in any code, it debugs because of the preceding 3 or 4 letter is not in the list box. (lst, lbl, cmty, or otr).
Can someone help me with some code to be able to double click on a selection in the list box to preview the report?
Beth
**Learning Access**
SELECT Right([name],Len([Name])-3) AS NameWithoutList FROM msysobjects WHERE ((([msysobjects].[Type])=-32764) And ((Left([name],3))="lst"
This was to pull all the reports that have the three letter code "lst" in front.
Now I would like to put an event procedure on the double click proptery to open the report when I double click on the selection in the box. My problem is that each time I try to put in any code, it debugs because of the preceding 3 or 4 letter is not in the list box. (lst, lbl, cmty, or otr).
Can someone help me with some code to be able to double click on a selection in the list box to preview the report?
Beth
**Learning Access**