I am a newbie with only a few hours of training. I am trying to build a parameter query, where it will take a start month number from the Startup form. The start month (CD_StartM) is a ComboBox based on another query (qryForm_DateM). The end month (CD_EndM) is a ComboBox based on another query (qryForm_DateM). I wanted to have the ability to enter only the Start month and it give me all data points after and including that month, and I wanted to have the ability to enter only the End month and it give me all the data points before and including that month and I wanted to have the ability to enter a Start and End month and it give me all the data points between and including those months and the ability to enter no Start and End months and it give me all the data points.
I entered the following in the criteria box and it fails:
Between ([Forms]![frmStartup]![CD_StartM] Or [Forms]![frmStartup]![CD_StartM] Is Null) and ([Forms]![frmStartup]![CD_EndM] Or [Forms]![frmStartup]![CD_EndM] Is Null)
I also tried adding the # sign and it fails:
Between #([Forms]![frmStartup]![CD_StartM] Or [Forms]![frmStartup]![CD_StartM] Is Null)# and #([Forms]![frmStartup]![CD_EndM] Or [Forms]![frmStartup]![CD_EndM] Is Null)#
I am completely stumped. :banghead:
I entered the following in the criteria box and it fails:
Between ([Forms]![frmStartup]![CD_StartM] Or [Forms]![frmStartup]![CD_StartM] Is Null) and ([Forms]![frmStartup]![CD_EndM] Or [Forms]![frmStartup]![CD_EndM] Is Null)
I also tried adding the # sign and it fails:
Between #([Forms]![frmStartup]![CD_StartM] Or [Forms]![frmStartup]![CD_StartM] Is Null)# and #([Forms]![frmStartup]![CD_EndM] Or [Forms]![frmStartup]![CD_EndM] Is Null)#
I am completely stumped. :banghead: