|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Forms - DAO Recordset Method Problem.
Hi Guys,
I am having a bit of trouble assigning a recordset to a subform and am using the following line to achieve this. Code:
Set Application.Forms("frmFAOFTEAdjustmentssubform").Recordset = FAOADJUSTRS
The Recordset was created previously, and this all works fine if I just open the Subform on it's own. However... If I open the Main Form, I get the following error: Run-time error '2450': Microsoft Access can't find the form 'frmFAOFTEAdjustmentssubform' referred to in the macro expression or Visual Basic code. I get this same error with all of the Sub Forms loaded from this screen, but they all work fine if you open them on their own? |
|
#2
|
||||
|
||||
|
SubForms do not exist in the FORMS Collection, only MainForms. This link should help with the syntax you need: http://www.mvps.org/access/forms/frm0031.htm
|
|
#3
|
|||
|
|||
|
Quote:
BRILLIANT.. That worked a treat. Thanks for your help.. |
|
#4
|
||||
|
||||
|
Great! Glad we could help.
|
![]() |
| Viewing: ASP Free Forums > Database > Microsoft Access Help > Forms - DAO Recordset Method Problem. |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|