G
Guest
From another form, I've been trying to add a record to a table that is open in a subform.
Aiming to write directly to the controls, I have tried
DoCmd.GoToRecord , "subform", acNewRec
That doesn't work, I guess because "subform" is a control and not open as far as DoCmd is concerned
Then I tried another route, hoping to Invoke the AddNew method:
rst1 = New ADODB.Recordset
rst1.ActiveConnection = "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=C:\My.mdb;"
rst1.Open "tblTransactionDetail", , adOpenKeyset, adLockOptimistic, _
adCmdTable
A non-starter because the table is already open in the other form's subform control, I guess. How would you remotely get ahold of a new record appearing in subform control?
Thanks for your time and talent.
Aiming to write directly to the controls, I have tried
DoCmd.GoToRecord , "subform", acNewRec
That doesn't work, I guess because "subform" is a control and not open as far as DoCmd is concerned
Then I tried another route, hoping to Invoke the AddNew method:
rst1 = New ADODB.Recordset
rst1.ActiveConnection = "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=C:\My.mdb;"
rst1.Open "tblTransactionDetail", , adOpenKeyset, adLockOptimistic, _
adCmdTable
A non-starter because the table is already open in the other form's subform control, I guess. How would you remotely get ahold of a new record appearing in subform control?
Thanks for your time and talent.