Hi
I have an Access database that connects to SQLServer via an ODBC link I can see the table fine.
I have a main form and a subform.
What I want to do is update the subform with the inputs from the user on the main form.
but I get an error
If I use
I get one error and if I use
I get another
What should I use and can I update over an ODBC link
Thanks
Phil
I have an Access database that connects to SQLServer via an ODBC link I can see the table fine.
I have a main form and a subform.
What I want to do is update the subform with the inputs from the user on the main form.
but I get an error
Code:
Private Sub AddRecord_Click()
Dim rs As Object
Dim rst As DAO.Recordset
Dim StaffNum As Double
StaffNum = Me.cmb_Search.Value
Set rst = Me!SicknessMainFormSub.Form.RecordsetClone
With rst
.AddNew
' ...
' ...
' ...
End With
End Sub
If I use
Code:
Set rst = Me!SicknessMainFormSub.Form.Recordset
I get one error and if I use
Code:
Set rst = Me!SicknessMainFormSub.Form.RecordsetClone
I get another
What should I use and can I update over an ODBC link
Thanks
Phil