I have a form, that according to my new friend "F8", is going from the form load below into a specific field LostFocus event to do a spell check. I don't want this to happen. Thoughts on what might be causing it and how to stop it? What happens next is even more bizarre is that it then goes to another form (Navigation) and opens it up.
Somehow it then jumps over to the Navigation form and starts running this code
Code:
Private Sub Form_Load()
'Resequence the data to pull the newest events to the top of the form.
Me.OrderBy = "[Start_Date] DESC, [start_time] DESC"
Me.Requery
'Put cursor in search box vice a data row.
textsearch.SetFocus
End Sub
'somehow it thinks it needs to then run this vba????
Private Sub Event_LostFocus()
'http://eileenslounge.com/viewtopic.php?f=29&t=10183
'Skips warning message if no spelling error
If Not IsNull(Me.Event) Then
With Me.Event
.SetFocus
.SelStart = 0
.SelLength = Len(Me.Event)
End With
DoCmd.SetWarnings False
RunCommand acCmdSpelling
DoCmd.SetWarnings True
End If
End Sub
Somehow it then jumps over to the Navigation form and starts running this code
Code:
Private Sub Form_Open(Cancel As Integer)
'Log Opening of form
'http://allenbrowne.com/AppLogDocUse.html
Call LogDocOpen(Me)
End Sub