G
Guest
I have a dropdown box that depends of another drop down box, on the after
update event I have the following code:
Dim sMajorAccount As String
sMajorAccount = "SELECT [tblChartofAccounts].[HyperionMajorAccount]" & _
" FROM tblAccountType INNER JOIN tblChartofAccounts ON"
& _
" [tblAccountType].[AccountTypeLabel] =
[tblChartofAccounts].[AccountGroup]" & _
" GROUP BY [tblChartofAccounts].[AccountGroup]," & _
"[tblChartofAccounts].[HyperionMajorAccount],
[tblAccountType].[ID]" & _
" HAVING ((([tblAccountType].[ID])=" &
Me.cboAccountTypeDescription.Value & "));"
Me.cboHyperionMajorAccount.RowSource = sMajorAccount
Me.cboHyperionMajorAccount.Requery
It all appears to be fine, but is not populating the dependent dropdown box.
When I click on the row source of the dependent dropdown, I can see the
proper syntax, further more if I click on the elipse, I get the query on
design mode and if I click on data sheet preview, the right data (what i
want) shows. What am I missing?
Michael Arch.
update event I have the following code:
Dim sMajorAccount As String
sMajorAccount = "SELECT [tblChartofAccounts].[HyperionMajorAccount]" & _
" FROM tblAccountType INNER JOIN tblChartofAccounts ON"
& _
" [tblAccountType].[AccountTypeLabel] =
[tblChartofAccounts].[AccountGroup]" & _
" GROUP BY [tblChartofAccounts].[AccountGroup]," & _
"[tblChartofAccounts].[HyperionMajorAccount],
[tblAccountType].[ID]" & _
" HAVING ((([tblAccountType].[ID])=" &
Me.cboAccountTypeDescription.Value & "));"
Me.cboHyperionMajorAccount.RowSource = sMajorAccount
Me.cboHyperionMajorAccount.Requery
It all appears to be fine, but is not populating the dependent dropdown box.
When I click on the row source of the dependent dropdown, I can see the
proper syntax, further more if I click on the elipse, I get the query on
design mode and if I click on data sheet preview, the right data (what i
want) shows. What am I missing?
Michael Arch.