Please help me.
I have hit a brickwall and can't figure out what the problem is
I have a main form call (Prods)and subform called Prodsub and both are unbound. I call the Mainform from a "start menu form" with the Docmd.OpenForm "prods" the mainform has a START and END date text box that the user has to input the date to filter data from a db with a query in the VB Code (not embedded in the form) and 3 Cmd buttons "Update, Print and End"
When the form loads focus doesn't move to the Date text box for
the START and END dates to be entered instead the VB codes runs without any dates and as a consequence no filtering occurs and no data is selected and after this the START Date txtbox gets focus.
I am using the subform to display tabular data retrieved from several tables.
How do I get the Main form to load and set focus to the Start
TxtBox immediately ?
I have hit a brickwall and can't figure out what the problem is
I have a main form call (Prods)and subform called Prodsub and both are unbound. I call the Mainform from a "start menu form" with the Docmd.OpenForm "prods" the mainform has a START and END date text box that the user has to input the date to filter data from a db with a query in the VB Code (not embedded in the form) and 3 Cmd buttons "Update, Print and End"
When the form loads focus doesn't move to the Date text box for
the START and END dates to be entered instead the VB codes runs without any dates and as a consequence no filtering occurs and no data is selected and after this the START Date txtbox gets focus.
I am using the subform to display tabular data retrieved from several tables.
How do I get the Main form to load and set focus to the Start
TxtBox immediately ?
Comment