PC Review


Reply
Thread Tools Rate Thread

Current is executing before Open

 
 
LAS
Guest
Posts: n/a
 
      7th Aug 2010
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


 
Reply With Quote
 
 
 
 
David W. Fenton
Guest
Posts: n/a
 
      7th Aug 2010
"LAS" <(E-Mail Removed)> wrote in
news:i3jp4f$l0j$(E-Mail Removed):

> 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?

--
David W. Fenton http://www.dfenton.com/
contact via website only http://www.dfenton.com/DFA/
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ExecuteReader requires an open and available Connection. The connection's current state is Open, Executing. fniles Microsoft VB .NET 7 18th Apr 2007 02:51 AM
ExecuteScalar requires an open and available Connection. The connection's current state is Open, Executing. hasmukh4u@gmail.com Microsoft ADO .NET 0 2nd Feb 2007 02:30 PM
On Current events keep executing over and over again for the same open forms Bill Reed via AccessMonster.com Microsoft Access Forms 5 10th Jun 2005 05:58 PM
Form Current executing twice =?Utf-8?B?TWU=?= Microsoft Access Form Coding 2 19th Nov 2004 02:51 AM
Finding the current executing directory Raphael Iloh Microsoft Dot NET Framework 2 9th Oct 2003 12:15 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:48 AM.