Hi everybody,
first of all sorry for my bad english!
this is my problem:
I created a subform that contain a textbox (in yellow) which works as a filter for records. It works but i have a problem, if I change record in the form the value in the filterbox doesn't change. so I created a button that update the submask.
On enter pressing event there is a (public) routine that make the filter works (the same on change but i don't know is useful).
I think is not easy make that when the subform is open, or when i go back and forth with form record in the form the box is automatically updated.
So I need to add to the bottom some code that virtually press enter on the filter box.
I tried with a "call" on the event after update but it doesn't work.
(are my events correct?)
this is a similar file there is onlya a form, not subform
best regards
PS: I don't know VBA or SQL
first of all sorry for my bad english!
this is my problem:
I created a subform that contain a textbox (in yellow) which works as a filter for records. It works but i have a problem, if I change record in the form the value in the filterbox doesn't change. so I created a button that update the submask.
On enter pressing event there is a (public) routine that make the filter works (the same on change but i don't know is useful).
I think is not easy make that when the subform is open, or when i go back and forth with form record in the form the box is automatically updated.
So I need to add to the bottom some code that virtually press enter on the filter box.
I tried with a "call" on the event after update but it doesn't work.
(are my events correct?)
this is a similar file there is onlya a form, not subform
best regards
PS: I don't know VBA or SQL
Attachments
Last edited: