Is there a way to capture the number of records returned for a specific query by placing it in a variable, table, etc.?
Here is what I'm trying to do. I have a process that imports files one at a time into a specific table <Import Table>. With this table, I need to take out specific rows of data, but I also need to log these rows in another table <Log Table>. I am currently using an append query to log the records <Log Table> and using delete query to delete the records <Import Table>. I want a check to make sure that the number of records deleted equals the number of records appended.
I have had problems before where I am trying to make reports that capture changes to a table throughout a process and this is the reason for the check. If anyone has a better process, I would appreciate the help.
Thanks,
Chris
Here is what I'm trying to do. I have a process that imports files one at a time into a specific table <Import Table>. With this table, I need to take out specific rows of data, but I also need to log these rows in another table <Log Table>. I am currently using an append query to log the records <Log Table> and using delete query to delete the records <Import Table>. I want a check to make sure that the number of records deleted equals the number of records appended.
I have had problems before where I am trying to make reports that capture changes to a table throughout a process and this is the reason for the check. If anyone has a better process, I would appreciate the help.
Thanks,
Chris