I have a form button that runs a delete query and an append query. I would like to be able to show the user how many rows will be deleted and how many will be appended and store them on the form. The queries already exist outside the VBA for the button. So I am just calling the queries with DoCmd.OpenQuery. I turned off the warnings so the popup doesn't happen that says "Do you really want to delete this many rows?" But I would still like to find out how many rows will be deleted or appended and store that number as a variable somewhere so the user can see it. How can I make that happen?
I tried a DCount function but because these are action queries it won't work. I would also like to avoid putting the SQL for the queries in my VBA. I like that they are separate from the VBA and can be edited on their own.