This question involves VBA as well so i hope i am in the right area. I have a form that has 2 combo boxes and a calendar control. I also have a datasheet subform in the form. I have set both combo boxes to call the calendar on mouse down and whatever date is selected off the calendar writes to the combo box no problem.
I wish to execute a query based on date_from and date_to as selected from the calendar and display the results in the subform. Without the calendar control, if the user manually enters dates in both fields by typing them in, the query works fine; however if the dates are selected from the calendar nothing happens. My code for the dates have been inputted in the after_update event which like i mentioned above works fine without the calendar control
Has anyone experienced this before and if so do you know how to get around this. Its just for ease of use to the customer to be able to select the date and then search. I have not included a search button on the form because i have several other search criteria that the use can use to include combos, checkboxes and textboxes hence every control has been hard coded to output results after update.
I wish to execute a query based on date_from and date_to as selected from the calendar and display the results in the subform. Without the calendar control, if the user manually enters dates in both fields by typing them in, the query works fine; however if the dates are selected from the calendar nothing happens. My code for the dates have been inputted in the after_update event which like i mentioned above works fine without the calendar control
Has anyone experienced this before and if so do you know how to get around this. Its just for ease of use to the customer to be able to select the date and then search. I have not included a search button on the form because i have several other search criteria that the use can use to include combos, checkboxes and textboxes hence every control has been hard coded to output results after update.