I am using a datepicker on a form, and when I reference that datepicker field in a query to help filter dates, my results are not filtered correctly.
The syntax in my query is as follows:
Between Forms!frmProjections!DTPicker3 And Forms!frmProjections!Text232
The code above is under the Criteria area of the QBE screen.
The begin date that is chosen on my datepicker is 4/29/2015, and the end date that is in Text232 = 11/27/2015.
The data in the Text232 field is calculated based on weeks being added to the datepicker date by using the DateAdd() function.
DateAdd("ww", Forms!frmProjections!DTPicker3, Forms!frmProjections!Text232)
The calculation of the date is correct, but the filtering of the dates is what is incorrect.
To my knowledge, this shouldn't have any barring on the outcome of the query, but it does.
Thanks
The syntax in my query is as follows:
Between Forms!frmProjections!DTPicker3 And Forms!frmProjections!Text232
The code above is under the Criteria area of the QBE screen.
The begin date that is chosen on my datepicker is 4/29/2015, and the end date that is in Text232 = 11/27/2015.
The data in the Text232 field is calculated based on weeks being added to the datepicker date by using the DateAdd() function.
DateAdd("ww", Forms!frmProjections!DTPicker3, Forms!frmProjections!Text232)
The calculation of the date is correct, but the filtering of the dates is what is incorrect.
To my knowledge, this shouldn't have any barring on the outcome of the query, but it does.
Thanks