L
LGarcia
Hi All,
I have form "frmRecipes" that can be called from two different places: from
a button on a form named "frmUserRecipes" and from a button on the main
switchboard.
From "frmUserRecipes" I use this code to take me to a specific record:
DoCmd.OpenForm "frmRecipes", acNormal, ,
"FoodCode=Forms!frmUserRecipes!OLDRNUM"
This works fine.
If I use the button on the switchboard I get prompted for
"Forms!frmUserRecipes!OLDRNUM" when "frmRecipes" opens. I need it to open on
the first record in this instance - no filter.
I've added an OnClose event to "frmRecipes" and typed Me.FilterOn = False. I
also tried Me.Filer = "". Both times AX07 gives me an error and shuts down.
I aslo changed "Filter on load" to NO and this also shuts down access.
Can anyone help?
TIA,
LGarcia
I have form "frmRecipes" that can be called from two different places: from
a button on a form named "frmUserRecipes" and from a button on the main
switchboard.
From "frmUserRecipes" I use this code to take me to a specific record:
DoCmd.OpenForm "frmRecipes", acNormal, ,
"FoodCode=Forms!frmUserRecipes!OLDRNUM"
This works fine.
If I use the button on the switchboard I get prompted for
"Forms!frmUserRecipes!OLDRNUM" when "frmRecipes" opens. I need it to open on
the first record in this instance - no filter.
I've added an OnClose event to "frmRecipes" and typed Me.FilterOn = False. I
also tried Me.Filer = "". Both times AX07 gives me an error and shuts down.
I aslo changed "Filter on load" to NO and this also shuts down access.
Can anyone help?
TIA,
LGarcia