M
Mo
Allen;
I am looking for some code to filter a listbox using a drop down list. My
list box shows several columns.
tag_id; TAG; Description; Manufacturer. for example
I would filter on tagid type where Left string of the first few characters
will indicate the tag type:
Example:
mm03-ty-01 , m% would indicate a motor (Which have own set of reports);
left$(Tagid,1) = m
sg01-FY-02 ; S% would indicate a switch. (all back end tables are in SQL
thus the % for a wild card)
The list is filtered to all possible types that start with an S or M or
anything else.
Then I would use the Selected items to print a report the related report
based on the Tag type.(M for motor
Motors have their own report, switches have own reports Etc. Currently
reports are in word, I'll have to recreate them as access reports as I don't
know how to print on word document straight from Access. At any rate report
select/print criteria is based on the type of the element Id or Tag ID
I would appreciate any help with real code example. .
P.S: I have the print selected list items on a single report working fine,
but not on a designed report in Word. Would it be faster to make these word
forms into Access reports?
Thanks
I am looking for some code to filter a listbox using a drop down list. My
list box shows several columns.
tag_id; TAG; Description; Manufacturer. for example
I would filter on tagid type where Left string of the first few characters
will indicate the tag type:
Example:
mm03-ty-01 , m% would indicate a motor (Which have own set of reports);
left$(Tagid,1) = m
sg01-FY-02 ; S% would indicate a switch. (all back end tables are in SQL
thus the % for a wild card)
The list is filtered to all possible types that start with an S or M or
anything else.
Then I would use the Selected items to print a report the related report
based on the Tag type.(M for motor
Motors have their own report, switches have own reports Etc. Currently
reports are in word, I'll have to recreate them as access reports as I don't
know how to print on word document straight from Access. At any rate report
select/print criteria is based on the type of the element Id or Tag ID
I would appreciate any help with real code example. .
P.S: I have the print selected list items on a single report working fine,
but not on a designed report in Word. Would it be faster to make these word
forms into Access reports?
Thanks