today I went to open my database and the switch board does not open. I receive the error message stating :the expression on open you entered as the event property setting return without gosub. I am not sure what this means. please help.
today I went to open my database and the switch board does not open. I receive the error message stating :the expression on open you entered as the event property setting return without gosub. I am not sure what this means. please help.
you should be able to show us the code.
next time click DEBUG and it will show the bad line.
somewhere in the code it is hitting a RETURN line, but code cannot hit it unless it was sent by a GOSUB line first.
Code:... gosub MySub code code exit sub MySub: code code RETURN end sub
this one is often due to corruption - use the compact/repair option and compile your code.
Another reason can be load events on a subform with no load event on a main form, but I doubt your nav form has sub forms...
The more we hear silence, the more we begin to think about our value in this universe.
Paraphrase of Professor Brian Cox.