G
Guest
Hello,
I am trying to use the buildcriteria method for a query to use when opening
a form. Please see code below.
Dim strCriteria As String
DoCmd.Minimize
If IsNull(Me![ComboBU].Value) Then
strCriteria = BuildCriteria("JDE Bus Unit", dbInteger, "[Forms]![Location
Selection for VE and RFE]![Combo0]")
DoCmd.OpenForm "Location Selection for VE and RFE"
Else
strCriteria = BuildCriteria("JDE Bus Unit", dbInteger,
"[Forms]![Main]![ComboBU]")
DoCmd.OpenForm "Forecast Input"
Where "ComboBU" is a dropdown box on the main menu, and Forms]![Location
Selection for VE and RFE]![Combo0]" is a dropdown box on the form "Location
Selection for VE and RFE".
My question is this: How do I incorporate "Str Criteria" into the query
that the form Forecast Input needs for the criteria?
Please let me know if I'm not being clear.
Thank you,
MN
I am trying to use the buildcriteria method for a query to use when opening
a form. Please see code below.
Dim strCriteria As String
DoCmd.Minimize
If IsNull(Me![ComboBU].Value) Then
strCriteria = BuildCriteria("JDE Bus Unit", dbInteger, "[Forms]![Location
Selection for VE and RFE]![Combo0]")
DoCmd.OpenForm "Location Selection for VE and RFE"
Else
strCriteria = BuildCriteria("JDE Bus Unit", dbInteger,
"[Forms]![Main]![ComboBU]")
DoCmd.OpenForm "Forecast Input"
Where "ComboBU" is a dropdown box on the main menu, and Forms]![Location
Selection for VE and RFE]![Combo0]" is a dropdown box on the form "Location
Selection for VE and RFE".
My question is this: How do I incorporate "Str Criteria" into the query
that the form Forecast Input needs for the criteria?
Please let me know if I'm not being clear.
Thank you,
MN