I have searched and searched and tried dozens of different syntax to try and get this to work and it simply evades me.
I'm trying to perform a DcCmd.ApplyFilter to a SubForm when I open the MainForm.
Here is what I currently have:
Code:
DoCmd.ApplyFilter , "Forms!F_Main_Overview.[Fsub_Log_Apiary_Main SubForm].Form!Apiary_Active =" & -1
I even tried attaching the code to the open event on the SubForm and it didn't work there either.
I hope someone can tell me what the correct syntax is as what I find online simply isn't working.
I have a second filter condition I will apply with this one so expecting that an And condition will work ?
Is there a better way to apply a filter in this circumstance ?? I keep seeing reference to FilterName but have no clue on how to construct a Named Filter.
My problem for this weekend and hopefully someone can help.