J
Joe Miller
I'm relatively new to VBA coding and am wondering if someone can help me with
the methodology required in the following problem. I want to automate the
AfterUpdate event of a control on a form to add a number of records to a
table.
I have a form with a control to allow the user to enter a date. Once that
date is entered, I want VBA to automatically add one record to Table2 for
each of the records in Table1 (with whom it shares a one to many
relationship) with the date in the control being automatically entered into a
field for each of the newly created records.
To make matters more complicated, I then want to repeat this process for the
four consecutive dates after the date entered by the user, without requiring
the user to enter those dates.
i appreciate I am being vague, but if anyone can help me with the structure
my code should take I'd be most appreciative!
Thanks
Joe
the methodology required in the following problem. I want to automate the
AfterUpdate event of a control on a form to add a number of records to a
table.
I have a form with a control to allow the user to enter a date. Once that
date is entered, I want VBA to automatically add one record to Table2 for
each of the records in Table1 (with whom it shares a one to many
relationship) with the date in the control being automatically entered into a
field for each of the newly created records.
To make matters more complicated, I then want to repeat this process for the
four consecutive dates after the date entered by the user, without requiring
the user to enter those dates.
i appreciate I am being vague, but if anyone can help me with the structure
my code should take I'd be most appreciative!
Thanks
Joe