Open an Editing Form From a Split Form

JamesJoey

Registered User.
Local time
Today, 13:13
Joined
Dec 6, 2010
Messages
642
What would be the best way to open an editing form from a split form to the same record as the split form?
I don't want tom use the single record part of the split form, no editng at all on the split form.
Currently I'm displaying the record ID and clicking that using:
Code:
DoCmd.OpenForm "FormNamet", OpenArgs:=Me.RecordID

In the ON Load of the editing form I'm using:
Code:
        With Me.RecordsetClone
            .FindFirst "RecordID=" & Me.OpenArgs
            If Not .NoMatch Then
                Me.Bookmark = .Bookmark
            End If
        End With
    
    End If
 
docmd.openform "fMyForm",,,"[id]=" & txtID
 
Create a query that will filter the record based on the record id of the form:

Select * from table where RecordId=Forms! FormName!RecordID

Use this query as the record source of the edit form.

No need to code it.
 
I forgot to mention.

I'd like to be able to move to other records in the single (editing) form.
 
Then your code will be fine.
 
Ok.

I'm using the same approach but with a contiguous form.

Thanks,
James
 

Users who are viewing this thread

Back
Top Bottom