The Brown Growler
Registered User.
- Local time
- Today, 22:27
- Joined
- May 24, 2008
- Messages
- 85
Hi,
I would be grateful if anyone could assist me by providing some code to run a Do Loop that carries out the following:
1. Pass a date from a list of dates to a text box on a form.
2. Run an append query in which the query uses the date set in the text box in the form.
3. Repeat the process for all dates in my list of dates
The objects I have for the task are:
Table named [T_Dates] containing one field named [SalesDate] which is my list of dates for the loop.
Form named [F_Date] containing one text box named [Text0] which is the recipient field for the date used in the loop
Query named [Q_Append_SS] which runs via the loop and appends the result to another table in the database. It is this append query which references the date stored in the text box [Text0] in the form [F_Date]
I hope the above is explained well enough to understand. My thoughts were to either have some code that could be assigned to the OnClick event property of a button or a specific module that I can run from the modules tab in the database.
However, I would be grateful for any suggestions or solutions that will assist with the above.
Thx & Rgds
Growlos
I would be grateful if anyone could assist me by providing some code to run a Do Loop that carries out the following:
1. Pass a date from a list of dates to a text box on a form.
2. Run an append query in which the query uses the date set in the text box in the form.
3. Repeat the process for all dates in my list of dates
The objects I have for the task are:
Table named [T_Dates] containing one field named [SalesDate] which is my list of dates for the loop.
Form named [F_Date] containing one text box named [Text0] which is the recipient field for the date used in the loop
Query named [Q_Append_SS] which runs via the loop and appends the result to another table in the database. It is this append query which references the date stored in the text box [Text0] in the form [F_Date]
I hope the above is explained well enough to understand. My thoughts were to either have some code that could be assigned to the OnClick event property of a button or a specific module that I can run from the modules tab in the database.
However, I would be grateful for any suggestions or solutions that will assist with the above.
Thx & Rgds
Growlos