Hi Everyone,
My first post for 2016. Happy New Year!
I'm getting a return without GoSub (Error 3) the first time I open the main form when I start my dbse. The form shows several labels which give a count result.
Debug marks the red section.
However, when I just close te Visual Basic for Applications and try again to open the main from, then it opens and shows calculating on the bottom left side of the window. If I close the form once more and then open it, I get all information including the counts on the form. I'm puzzled, does anyone have an idea how I can fix this?
Thanks.
My first post for 2016. Happy New Year!
I'm getting a return without GoSub (Error 3) the first time I open the main form when I start my dbse. The form shows several labels which give a count result.
Code:
Private Sub Form_Current()
If Me.NewRecord Then
Me.Parent!lblEvent.Caption = _
"Event(s): " & Me.Recordset.RecordCount + 1
Else
[COLOR=red]Me.Parent!lblEvent.Caption = _
"Event(s): " & Me.Recordset.RecordCount
[/COLOR] End If
End Sub
Debug marks the red section.
However, when I just close te Visual Basic for Applications and try again to open the main from, then it opens and shows calculating on the bottom left side of the window. If I close the form once more and then open it, I get all information including the counts on the form. I'm puzzled, does anyone have an idea how I can fix this?
Thanks.