BetterBeef
New Member
- Joined
- Mar 18, 2010
- Messages
- 42
Hello,
I have been working on a specification database for a little bit now and it has worked for quite a long time. However, recently when I try to open the form after booting Access (2003 file using 2010 Access), I get the following error:
"The expression On Open you entered as the event property setting produced the following error: Return without GoSub."
Here is my code for On Open:
Private Sub Form_Open(Cancel As Integer)
DoCmd.Maximize
DoCmd.SetWarnings Off
'DoCmd.GoToControl "ProductCode"
Me.Filter = "Status = 'Active'"
Me.FilterOn = True
SetFilterStatus ("Active")
Me.ProductList.Requery
Me.ProductCodeLkup.Requery
'gstrResponse = "Active"
'Link = ''
End Sub
Here's the other interesting thing... When I go into the code and debug it, I try loading the form again, and it works without error! I am thoroughly confused as to what I need to do. Any thoughts?
Chris
I have been working on a specification database for a little bit now and it has worked for quite a long time. However, recently when I try to open the form after booting Access (2003 file using 2010 Access), I get the following error:
"The expression On Open you entered as the event property setting produced the following error: Return without GoSub."
Here is my code for On Open:
Private Sub Form_Open(Cancel As Integer)
DoCmd.Maximize
DoCmd.SetWarnings Off
'DoCmd.GoToControl "ProductCode"
Me.Filter = "Status = 'Active'"
Me.FilterOn = True
SetFilterStatus ("Active")
Me.ProductList.Requery
Me.ProductCodeLkup.Requery
'gstrResponse = "Active"
'Link = ''
End Sub
Here's the other interesting thing... When I go into the code and debug it, I try loading the form again, and it works without error! I am thoroughly confused as to what I need to do. Any thoughts?
Chris