No idea without seeing your db
The highlight is a nice touch but hardly crucial
Did you use version 5?
I'm out for most of today but I'll get back to it later.
It may be that removing duplicated code would fix it.
I think I know why you got the 'can't go to that record error'
Were you by any chance on the last record?
I changed it to a datasheet as I thought you were having problems with a continuous form. Happy to change it back
Not sure I understand what you're saying is fine in the first part of your post
Do bear in mind that I NEVER use split forms and that applies to this one as well.
Dim WithEvents f As Form
Private Sub Form_Load()
Child1.SourceObject = "frmArchivedClasses"
Child2.SourceObject = "fsubArchivedClasses"
Set Child2.Form.Recordset = Child1.Form.Recordset
Set f = Child2.Form
...
Private Sub f_Error(DataErr As Integer, Response As Integer)
Select Case DataErr
Case 2450: Child2_Exit 0
End Select
Response = acDataErrContinue
End Sub
Private Sub f_Error(DataErr As Integer, Response As Integer)
MsgBox "Error " & Err.Number & " in f_Error procedure: " & Err.Description
Select Case DataErr
Case 2450: Child2_Exit 0
Case Else
End Select
Response = acDataErrContinue
End Sub
Works fine here.
make sure set f = is after the other bits of code.
All code is in frmSplitter.
It's bad enough having three forms. If you wanted more split forms you wouldn't want to create a container for each so all splitter related code should be kept in that one form. You could then create new instances of it and switch the source objects. Would be nice to be able to switch views after opening then you'd only need one form and the container.
I can't get it to work now either.
I must've cocked something up somewhere.
At least you have something you're happy with.