On the path to convert all my macros over to VBA since getting help on macros is painful and have come up with a couple different ways to filter my results when opening the next form.
I used various examples found online and also looked at the code crated when I converted macros to code on a copy of my database. So I have two ways to filter my results:
One
Code:
DoCmd.OpenForm "F_Log_Apiary_Main", acNormal, "", , , acNormal
DoCmd.ApplyFilter , "Active = -1 And [Log_Apiary_ID] > 1"
and Two
Code:
DoCmd.OpenForm "F_Log_Apiary_Main", acNormal, "Active = -1 And [Log_Apiary_ID] > 1", , , acNormal
Is one better than the other or one preferred over the other and if so, why ?
Is there a better way than either of these methods ?
Just asking so I can gain a better understanding as I create additional code with more efficiency.
Thanks.....