mikematthys
New member
- Local time
- Today, 11:53
- Joined
- Jan 24, 2019
- Messages
- 7
Hi,
I have a main page, on that main page there is a field called 'sel_naam_dropdown'
the data in that field comes from a subform when you click on the line in the subform it gets the naam of the person in that line '=[Form]![Sub1].[Form]![Naam]'
works perfectly
on that subform i have a dropdown
the dropdown gets his data from a query
SELECT Plan_namen.naam, Plan_namen.inslag2 AS sel FROM Plan_namen
WHERE (((Plan_namen.inslag)=True)) AND (((Plan_namen.naam)=[Formulieren]![planrooster]![sel_naam_dropdown]));
UNION SELECT Plan_namen.naam, Plan_namen.aanvullen2 AS sel FROM Plan_namen
WHERE (((Plan_namen.aanvullen)=True)) AND (((Plan_namen.naam)=[Formulieren]![planrooster]![sel_naam_dropdown]));
the query is way longer then this but you get the point, this way i can specify what the dropdown shows for a specified person.
this works but
my problem that i have now is the refresh
if i use F5 before clicking on the dropdown it works as intended, but ofc we dont want to click F5, is there anyone that can tell me how to do a refresh for this to work
i tried close/open, requery ... nothing seems to work
I have a main page, on that main page there is a field called 'sel_naam_dropdown'
the data in that field comes from a subform when you click on the line in the subform it gets the naam of the person in that line '=[Form]![Sub1].[Form]![Naam]'
works perfectly
on that subform i have a dropdown
the dropdown gets his data from a query
SELECT Plan_namen.naam, Plan_namen.inslag2 AS sel FROM Plan_namen
WHERE (((Plan_namen.inslag)=True)) AND (((Plan_namen.naam)=[Formulieren]![planrooster]![sel_naam_dropdown]));
UNION SELECT Plan_namen.naam, Plan_namen.aanvullen2 AS sel FROM Plan_namen
WHERE (((Plan_namen.aanvullen)=True)) AND (((Plan_namen.naam)=[Formulieren]![planrooster]![sel_naam_dropdown]));
the query is way longer then this but you get the point, this way i can specify what the dropdown shows for a specified person.
this works but
my problem that i have now is the refresh
if i use F5 before clicking on the dropdown it works as intended, but ofc we dont want to click F5, is there anyone that can tell me how to do a refresh for this to work
i tried close/open, requery ... nothing seems to work