Connecting Tech Pros Worldwide Forums | Help | Site Map

How to get a reports of update query

atksamy's Avatar
Member
 
Join Date: Oct 2008
Posts: 82
#1: Dec 2 '08
hi,

Is it possibel to get a report of the records that are updated using a update query.
I mean without using recordset. suppose
Expand|Select|Wrap|Line Numbers
  1. sqltext = update table employees set bonus = 0 where salary > 50000 
  2.  
  3. DoCmd.RunSQL sqltext
now after theis query runs is it possible to get the name of the employees for whom this update query was performed.
i would like to get the updated records in a excel file.

Thanks

FishVal's Avatar
Expert
 
Join Date: Jun 2007
Location: Israel
Posts: 2,584
#2: Dec 2 '08

re: How to get a reports of update query


Why not something like
Expand|Select|Wrap|Line Numbers
  1. SELECT * FROM employees WHERE salary>50000
  2.  
?
atksamy's Avatar
Member
 
Join Date: Oct 2008
Posts: 82
#3: Dec 3 '08

re: How to get a reports of update query


Hmm thanks for the reply but in that case if there are records with bonus = 0 before the updation they would also be listed which I dont want.
FishVal's Avatar
Expert
 
Join Date: Jun 2007
Location: Israel
Posts: 2,584
#4: Dec 3 '08

re: How to get a reports of update query


So create report before update. :)
Reply

Tags
ms access, update query, vba