G
gg
I am tying to change the names of two forms I am using the onUpdate of a
comboBox named RaceNoBox on the form named 0MainMenu to start the code.
If DLookup("pursuitFlag", "00RaceSchedule", "idRaceNo=form.racenoBox") = -1
Then
call Module5
Module5 contains:
DoCmd.Close acForm, "0MainMenu"
DoCmd.Rename "0MainMenu_Reg", acForm, "0MainMenu" (This works)
DoCmd.Rename "0MainMenu", acForm, "0MainMenu-PUR" (Get error 2007 msg)
DoCmd.OpenForm "0 Main Menu"
The first action works. 00mainMenu becomes 00MainMenu-Reg Then, I get a
run-time error message "run-time error 2007-You already have an open data
base object named 0MainMenu" and procedure halts. i
I'm using Access 2000 with W2000. Any help much appreciated.
comboBox named RaceNoBox on the form named 0MainMenu to start the code.
If DLookup("pursuitFlag", "00RaceSchedule", "idRaceNo=form.racenoBox") = -1
Then
call Module5
Module5 contains:
DoCmd.Close acForm, "0MainMenu"
DoCmd.Rename "0MainMenu_Reg", acForm, "0MainMenu" (This works)
DoCmd.Rename "0MainMenu", acForm, "0MainMenu-PUR" (Get error 2007 msg)
DoCmd.OpenForm "0 Main Menu"
The first action works. 00mainMenu becomes 00MainMenu-Reg Then, I get a
run-time error message "run-time error 2007-You already have an open data
base object named 0MainMenu" and procedure halts. i
I'm using Access 2000 with W2000. Any help much appreciated.