B
BonnieW via AccessMonster.com
I have a form, on which I have a combo box which chooses a park. On that
form is a tab control; within that tab control is a subform containing
another tab control; on that tab control is a subform. I would like that sub-
sub-form to have a combo box from which the user can choose a point within
that park, chosen on the main form.
I found a bit of code from John Vinson, and tried to apply it here, but
perhaps I'm running into an issue with syntax, because it's just not working.
The code for my Parks combo box:
Private Sub Combo24_AfterUpdate()
Forms![ssfrmBirdsPointCounts]![Combo20].Requery
End Sub
Its rowsource:
SELECT [Natural_Area].[Natural_Area_ID], [Natural_Area].[NA_Name] FROM
[Natural_Area] ORDER BY [NA_Name];
The code on my Points combo box:
(none)
Its rowsource:
SELECT tblAvesPoints.AvP_Key, tblAvesPoints.AvP_BPoint_ID, tblAvesPoints.
AvP_NatArea_ID, tblAvesPoints.AvP_Name FROM tblAvesPoints WHERE ((
(tblAvesPoints.AvP_NatArea_ID)=[Forms]![frmBirds]![Combo24])) ORDER BY
tblAvesPoints.AvP_BPoint_ID;
Both combo boxes are bound, to different tables. I plan to use the same
basic setup & methods for two other sets of forms, so if I'm doing something
terribly wrong, please let me know.
Thanks in advance!
form is a tab control; within that tab control is a subform containing
another tab control; on that tab control is a subform. I would like that sub-
sub-form to have a combo box from which the user can choose a point within
that park, chosen on the main form.
I found a bit of code from John Vinson, and tried to apply it here, but
perhaps I'm running into an issue with syntax, because it's just not working.
The code for my Parks combo box:
Private Sub Combo24_AfterUpdate()
Forms![ssfrmBirdsPointCounts]![Combo20].Requery
End Sub
Its rowsource:
SELECT [Natural_Area].[Natural_Area_ID], [Natural_Area].[NA_Name] FROM
[Natural_Area] ORDER BY [NA_Name];
The code on my Points combo box:
(none)
Its rowsource:
SELECT tblAvesPoints.AvP_Key, tblAvesPoints.AvP_BPoint_ID, tblAvesPoints.
AvP_NatArea_ID, tblAvesPoints.AvP_Name FROM tblAvesPoints WHERE ((
(tblAvesPoints.AvP_NatArea_ID)=[Forms]![frmBirds]![Combo24])) ORDER BY
tblAvesPoints.AvP_BPoint_ID;
Both combo boxes are bound, to different tables. I plan to use the same
basic setup & methods for two other sets of forms, so if I'm doing something
terribly wrong, please let me know.
Thanks in advance!