View Single Post
  #3  
Old May 21st, 2010, 08:41 AM posted to microsoft.public.access.forms
mie via AccessMonster.com
external usenet poster
 
Posts: 9
Default Form Open Error Message

Try recompile your code. Select All, Cut and Paste, DebugCompile Database.

or maybe some of your procedure missing "Exit Sub".

Dinamo/Pistons wrote:
I added three new fields to a form and now I get the following error:
The expression On Open you entered as the event property setting produced
the following error: return without GoSub

Well I did not change the On Open event procedure.. here it is:
Private Sub Form_Open(Cancel As Integer)
DoCmd.GoToRecord , , acNewRec
Me.subFormRepeatCalls.Enabled = False
End Sub

Interesting enough after I open and close the event procedure, I can open
the form without problems. If I exit the database I get the same error. I
deleted the fields, but I am still getting the same error

PLEASE HELP


--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...forms/201005/1