stevenblanc
Registered User.
- Local time
- Yesterday, 19:12
- Joined
- Jun 27, 2011
- Messages
- 103
Greetings folks,
So I spent the last couple days dug deep into my database project and it was all coming along smoothly until I had an untimely system crash. Fortunately I save regularly so I only lost about 5 minutes of work.
Unfortunately, I do not backup regularly otherwise I'm sure I could just avoid this entirely.
I have a form, frmInterface_Actions; which upon resizing runs the following code:
After my crash however I get the following error:
The expression On Resize you entered as the event property setting produced the following error: Return without GoSub.
Now, I can temporarily remedy this problem simply by opening the form, going into properties and clicking the view code (...) button for the On Resize event. After that, problem disappears until the next time I restart Access.
Is there a way to solve this problem permanently without rebuilding the form?
Cheers,
Steven
So I spent the last couple days dug deep into my database project and it was all coming along smoothly until I had an untimely system crash. Fortunately I save regularly so I only lost about 5 minutes of work.
Unfortunately, I do not backup regularly otherwise I'm sure I could just avoid this entirely.
I have a form, frmInterface_Actions; which upon resizing runs the following code:
Private Sub Form_Resize()
Dim intSpacer, intRight As Integer
Dim ctl As Control
intSpacer = 420
intRight = 368
For Each ctl In Me.Controls
If (InStr(UCase(ctl.Name), UCase("nav"))) = 0 Then ctl.Width = (Form.InsideWidth - (intSpacer * 2.5)) / 2
If (InStr(UCase(ctl.Name), UCase("cat3"))) > 0 Or (InStr(UCase(ctl.Name), UCase("cat4"))) > 0 Then
If (InStr(UCase(ctl.Name), UCase("nav"))) = 0 Then
'Right Side Controls
ctl.Left = (intSpacer * 1.5) + ctl.Width
Else
ctl.Left = (Form.InsideWidth) - (intSpacer) - intRight
End If
Else
If (InStr(UCase(ctl.Name), UCase("nav"))) = 0 Then
'Left Side Controls
ctl.Left = intSpacer
Else
ctl.Left = (Form.InsideWidth / 2) - (intSpacer / 4) - intRight
End If
End If
Next ctl
End Sub
After my crash however I get the following error:
The expression On Resize you entered as the event property setting produced the following error: Return without GoSub.
Now, I can temporarily remedy this problem simply by opening the form, going into properties and clicking the view code (...) button for the On Resize event. After that, problem disappears until the next time I restart Access.
Is there a way to solve this problem permanently without rebuilding the form?
Cheers,
Steven