Good afternoon,
I’m currently working on a project that involves master and subforms. On the master form I’m using a combox to populate related data in the subform.
Likewise on the master form, I’m also using a date textbox and command button to populate data in the subform based on a date typed in the textbox.
In addition, in the properties of the subform, I’m linking the date textbox(unbound) to the date_Scanned(bound) field to the subform.
So far everything seems to be working in regards to the Combo box and textbox populating the subform. However, if I select a value from the Combox the subform will populate and if I key in a date in the textbox and click the command button the subform will populate data corresponding to the date.
But, if I Key in date first to populate the subform and then need to make a selection from the Combo box, the subform will not populate.
As I previously stated, I have a legitimate reason for preferring using a textbox for date as opposed to a Combo box. As such, if I key in a date to populate the subform and then also need to select from the Combo box, I still need for the subform to populate. Subform should always populate when going back and forth between textbox and Combo box.
What kind of VBA code would be useful for what I’m trying to accomplish? I would greatly appreciate any help anyone out there can give.
Thanks so much…
I’m currently working on a project that involves master and subforms. On the master form I’m using a combox to populate related data in the subform.
Likewise on the master form, I’m also using a date textbox and command button to populate data in the subform based on a date typed in the textbox.
In addition, in the properties of the subform, I’m linking the date textbox(unbound) to the date_Scanned(bound) field to the subform.
So far everything seems to be working in regards to the Combo box and textbox populating the subform. However, if I select a value from the Combox the subform will populate and if I key in a date in the textbox and click the command button the subform will populate data corresponding to the date.
But, if I Key in date first to populate the subform and then need to make a selection from the Combo box, the subform will not populate.
As I previously stated, I have a legitimate reason for preferring using a textbox for date as opposed to a Combo box. As such, if I key in a date to populate the subform and then also need to select from the Combo box, I still need for the subform to populate. Subform should always populate when going back and forth between textbox and Combo box.
What kind of VBA code would be useful for what I’m trying to accomplish? I would greatly appreciate any help anyone out there can give.
Thanks so much…