Current is executing before Open

L

LAS

The current event in my form is executing before the Open event. As far as
I understand it the "open" event is supposed to be the first place you can
put code. I sort of think this wasn't happening earlier. I've compact and
repaired the database. Any advice?

Private Sub Form_Open(Cancel As Integer)
ls_Debug = "stop" 'Here is my
break point
Set irst_StudentTracking = Me.Recordset 'And another is here
End Sub
 
D

David W. Fenton

The current event in my form is executing before the Open event.
As far as I understand it the "open" event is supposed to be the
first place you can put code. I sort of think this wasn't
happening earlier. I've compact and repaired the database. Any
advice?

Private Sub Form_Open(Cancel As Integer)
ls_Debug = "stop" 'Here
is my
break point
Set irst_StudentTracking = Me.Recordset 'And another is
here
End Sub

Again, why are you bothering with the form's recordset when the
whole point of a form is to edit the data via the form's controls?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top