Hello All
I have a table ‘Data’ in which I record articles that I have to send to users. I use it to monitor if they have returned said items and to generate reminder letters; The Table has fields for
Record No (PK),
User name,
user address,
user postcode,
date sent,
date reminder letter sent,
In order to monitor reminder letters, I have a query QrySendLetter that captures daydatediff between Now() and date sent,
where daydatediff>50 and ‘date reminder letter sent’ is null in addition to capturing the user details.
I have generated a report RptReminderLetter, fed by QrySendLetter which pulls the user details off Data and thus all my letters are printed, all from a Command button on a form which opens the report.
What I want to do is run an update query after I have printed off all my reports, that takes all the Record No’s from QrySendLetter, and populates the relative ‘date reminder letter’ sent Field in Data with a Now() value, thus the next time I run the RptReminderLetter, these items are excluded.
I have tried various combinations with update queries, such as
Code:
UPDATE Data INNER JOIN [QrySendLetter] ON Data.[Record No] = [QrySendLetter].[Record No] SET Data.[1st Reminder Sent] = Now();
…but no luck so far. Does anyone know if this is possible, and if so, how?
Mattbro