S
ScottMsp
Hello,
I have been working on this issue for hours and have spent many days trying
to read the board to solve my issue, but I cannot, which is why I am posting
this question.
I cannot get my drop down boxes to work.
I am simply trying to use two drop down boxes and limit the second drop down
box based on a selection I made in the first drop down box. Here is what I
have so far:
Form Name: fBenchmarkJobDetails
RecordSource: tBenchmarkJobDetails
Fields in tBenchmarkJobDetails
JobCode
SvyName_ID
SvyEffectiveDate
SvyJobCode
And so on…
First Drop Down Box
Control Source: SvyName_ID
Control Box Name: cboSvyName_ID
RowSource: SELECT [tSurveyNamesMaster].[SvyName_ID] FROM
[tSurveyNamesMaster] ORDER BY [SvyName_ID];
AfterUpdateEvent
Private Sub cboSvyName_ID_AfterUpdate()
Me.cboSvyEffectiveDate = Null
Me.cboSvyEffectiveDate.Requery
Me.cboSvyEffectiveDate.ItemData (0)
End Sub
Second Drop Down Box
Control Source: SvyEffectiveDate
Control Box Name: cboSvyEffectiveDate
Row Source: SELECT [tSurveynamesMaster].[SvyName_ID],
[tSurveyNamesMaster].[SvyEffectiveDate] FROM [tSurveyNamesMaster] WHERE
((([tSurveyNamesMaster].[SvyName_ID])=Forms!fBenchmarkJobDetails.Form!cboSvyName_ID));
Thanks in advance for your help.
I have been working on this issue for hours and have spent many days trying
to read the board to solve my issue, but I cannot, which is why I am posting
this question.
I cannot get my drop down boxes to work.
I am simply trying to use two drop down boxes and limit the second drop down
box based on a selection I made in the first drop down box. Here is what I
have so far:
Form Name: fBenchmarkJobDetails
RecordSource: tBenchmarkJobDetails
Fields in tBenchmarkJobDetails
JobCode
SvyName_ID
SvyEffectiveDate
SvyJobCode
And so on…
First Drop Down Box
Control Source: SvyName_ID
Control Box Name: cboSvyName_ID
RowSource: SELECT [tSurveyNamesMaster].[SvyName_ID] FROM
[tSurveyNamesMaster] ORDER BY [SvyName_ID];
AfterUpdateEvent
Private Sub cboSvyName_ID_AfterUpdate()
Me.cboSvyEffectiveDate = Null
Me.cboSvyEffectiveDate.Requery
Me.cboSvyEffectiveDate.ItemData (0)
End Sub
Second Drop Down Box
Control Source: SvyEffectiveDate
Control Box Name: cboSvyEffectiveDate
Row Source: SELECT [tSurveynamesMaster].[SvyName_ID],
[tSurveyNamesMaster].[SvyEffectiveDate] FROM [tSurveyNamesMaster] WHERE
((([tSurveyNamesMaster].[SvyName_ID])=Forms!fBenchmarkJobDetails.Form!cboSvyName_ID));
Thanks in advance for your help.