R
rmanchu
hi
v Access 2003
i've got a form which to which i attach a Recordset at runtime. ok upto
here
another form also. ok upto here
now i want to combine them in a single form in form/subform manner.
Private Sub Form_Open(Cancel As Integer)
Set Me.Recordset = rstSection
Me.SectionStaff.LinkMasterFields = "Section_CodeE"
Me.SectionStaff.LinkChildFields = "SecStaff_Section"
End Sub
however, on line two (LinkMasterFields), i get an error (31) saying
"Data Provider could not be initialised"
Private Sub Form_Open(Cancel As Integer)
Set Me.Recordset = rstSectionStaff
End Sub
the subform ^above^code^ is called correctly as well and before the
main form open method is called.
the fieldnames ARE correct - when i load the form/subform from *linked
tables* it works fine. i just cannot get VB code above to work. please
help.
halp
riyaz
v Access 2003
i've got a form which to which i attach a Recordset at runtime. ok upto
here
another form also. ok upto here
now i want to combine them in a single form in form/subform manner.
Private Sub Form_Open(Cancel As Integer)
Set Me.Recordset = rstSection
Me.SectionStaff.LinkMasterFields = "Section_CodeE"
Me.SectionStaff.LinkChildFields = "SecStaff_Section"
End Sub
however, on line two (LinkMasterFields), i get an error (31) saying
"Data Provider could not be initialised"
Private Sub Form_Open(Cancel As Integer)
Set Me.Recordset = rstSectionStaff
End Sub
the subform ^above^code^ is called correctly as well and before the
main form open method is called.
the fieldnames ARE correct - when i load the form/subform from *linked
tables* it works fine. i just cannot get VB code above to work. please
help.
halp
riyaz