Quantcast
Channel: Access for Developers forum
Viewing all articles
Browse latest Browse all 14673

Macro to 'remove' filter after opening a form for a specified record ?

$
0
0

Using Macro's... not vba...

- FormA1 has a button to open "FormA2" then close FormA1

- the OpenForm Macro has a "Where" clause that looks like this...

Where [idItem]=[Forms]![formA1]![idItem]

- FormA2 has a button to return to  FormA1 then close FormA2

- that OpenForm Macro's where clause looks like this...

Where [idItem]=[Forms]![formA2]![idItem]

- both forms are showing the same record in the mainForm... but different stuff in the subForms

- the problem is when returning to formA1... the record becomes filtered so the record navigation buttons at the bottom of the form don't work (unless the user clicks remove filter)

- the question is how to modify the macro that returns from FormA2  (idItem=X) to the FormA1 (idItem=X) to then remove the filter so the user can use the normal record navigation buttons at the bottom of the screen.... using a macro... not vba.

thanks for any help.


Viewing all articles
Browse latest Browse all 14673

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>