there's no such thing as a "Tabcontrol form", hon. you can put a tab control
on a form, just like you can put a textbox control or a listbox control or a
combobox control on a form. a tab control can't be bound to a field in a
table, though; it's basically used to add "real estate" to a form, providing
more space to work in by adding pages to the control.
so let's see if i understand your setup now. you have a main form bound to
tblClients. the main form has a tab control on it, and i'm guessing that the
fields from tblClients are bound to controls that are sitting on a page of
the tab control. a 2nd page of the tab control holds SubformA, which is a
continuous form which is also bound to tblClients. correct so far?
okay, i had to test it before i realized the obvious: you want to *find* a
record in the main form, not *create* one. i guessing that your ClientID
field is the table's primary key, and is an Autonumber data type - which is
a good thing, because it stopped you (and me, in my test) from making the
mistake of overwriting the primary key of an existing record. instead, try
Private Sub Form_Current()
On Error Resume Next
Me.Parent.Recordset.FindFirst "ClientID = " & Me!ClientID
End Sub
if ClientID is actually a Text data type, then change the syntax to
"ClientID = '" & Me!ClientID & "'"
also, in the main form, doublecheck the LinkChildFields and LinkMasterFields
properties of the subform control. Access may have automatically filled in
"ClientID" (sans quotes) in both properties; if so, remove it from both, the
two properties should be blank.
if you prefer to click a button on the subform to get the current record to
show on the main form, move the code from the subform's Current event to a
command button's Click event.
hth