hi guys !
my set up:
form - frmTrainingPage
combo box - cboCustomerName
combo box - cboSiteTitle
i also have vba
and few other Me. where it does Requery
all abovementioned works perfectly in a form, BUT when i move this form to a navigation control it says "enter parameter value Forms!frmTrainingPage!cboCustomerName"
i kinda get that once i move form to a nav. control it behaves like subform so "direct link" wont work, but how do i call
Forms!frmTrainingPage!cboCustomerName
Forms!frmTrainingPage!cboSiteTitle
without calling them like they are?
i tired this and it didn't help.
my set up:
form - frmTrainingPage
combo box - cboCustomerName
Code:
SELECT Customers.CustomerID, Customers.CustomerName
FROM Customers
ORDER BY Customers.[CustomerID];
Code:
SELECT CustomerSite.CustomerSiteID, CustomerSite.SiteTitle
FROM CustomerSite
WHERE (((CustomerSite.[CustomerID])=[Forms]![frmTrainingPage]![cboCustomerName]));
i also have vba
Code:
Private Sub cboCustomerName_AfterUpdate()
Me.cboSiteTitle.Requery
End Sub
and few other Me. where it does Requery
all abovementioned works perfectly in a form, BUT when i move this form to a navigation control it says "enter parameter value Forms!frmTrainingPage!cboCustomerName"
i kinda get that once i move form to a nav. control it behaves like subform so "direct link" wont work, but how do i call
Forms!frmTrainingPage!cboCustomerName
Forms!frmTrainingPage!cboSiteTitle
without calling them like they are?
i tired this and it didn't help.
Code:
Private Sub cboCustomerName_AfterUpdate()
On Error Resume Next
Me.cboSiteTitle.Requery
If Err.Number <> 0 Then
Screen.ActiveControl.Form.cboSiteTitle.Requery
End If
On Error GoTo 0
End Sub