I see what you mean. The list box of the "Situation" has a number of word to
select from and in that list words like "Vehicle injury accident" , "Animal
injury attack" that would open or pop up the 300 form and then the 301 form
while other words would not like safety review. I hope I have conveyed what I
am needing.
> >I want certain forms to pop up when certain words are entered into a sub
> >form control text box.
[quoted text clipped - 15 lines]
>
> John W. Vinson [MVP]
John W. Vinson - 27 May 2007 07:31 GMT
>I see what you mean. The list box of the "Situation" has a number of word to
>select from and in that list words like "Vehicle injury accident" , "Animal
>injury attack" that would open or pop up the 300 form and then the 301 form
>while other words would not like safety review. I hope I have conveyed what I
>am needing.
Not really.
It sounded like you were having text typed freely into a textbox and needed to
match it to values in a listbox. Apparently not.
You can use the AfterUpdate event of the listbox to determine which value was
selected, and then open a form based on the value. But it's not clear from
this WHICH values would cause this other form to open - and I'm really queasy
about embedding the business logic in the name values anyway!
I'd be inclined to add another field to the Listbox's RowSource table
indicating which supplementary form should be opened (maybe someday there will
be one form for accidents, a different form for other medical emergencies,
...), rather than trying to parse the actual text value from the listbox.
Would that be a reasonable approach?
John W. Vinson [MVP]