Hi,
I have to do it this way in terms of the process. Once the 7 days reminder report is sent, I just need to record in the table the actual date when it was sent to per each person. So I am defacto updating table from the query, not from the report.
RE code, I thought so and have checked it in the VBA immediate window code. Still it seems to be picking up only the last person emp id?
LillyC
Main Topics
Browse All Topics





by: dqmqPosted on 2009-11-05 at 14:31:07ID: 25754818
Hmmm... it's a little unusual to update a table from a report. I'd prefer to see you update the table from a macro or form that is external to the report and then report out the records just updated.
As for the actual update, it's much easier to use an update query instead of procedural code that loops thru one recordset and updates another.
Your code appears to actually loop through all the rows of your 7 day reminder query and load an array with the emp_numbers. I think it is picking them all up!! Why do you think otherwise?