Quantcast
Channel: dBforums – Everything on Databases, Design, Developers and Administrators
Viewing all articles
Browse latest Browse all 13329

Run query from event

$
0
0
Hi.

I have a form with two comboboxes. Each combobox is attached to a table for lookups. So I like to filter the contents in lookup table in combo2 dependent on the selection on the combo 1.

The table connected to combo2 has 2 columns. I only show column 1 in combo. The other has attached a label with same as table for selection on combo 1.

So I came up with this query:
PHP Code:

SELECT SubSystem.SubSystemSubSystem.MainSystem
FROM SubSystem
WHERE 
(((SubSystem.MainSystem)=[Forms]![Input]![MainSystem]))
ORDER BY SubSystem.SubSystem

This query is found under data, row source. It looks like it runs only once when I open the database form first time. I like this to run everytime I chenge a selection on combo 1.

How to do this?

Thanks

Viewing all articles
Browse latest Browse all 13329

Trending Articles