what does keystrokes %RR do

rollingzep

Board Regular
Joined
Nov 18, 2013
Messages
224
Office Version
  1. 365
Platform
  1. Windows
Hi,

I have inherited an Access database. When I open the database, it triggers few queries before the main form is visible.
I looked for the AutoExec but do not see one.
I see a macro with SendKeys Keystrokes %RR.

1687545231889.png

What is the above macro for? If this macro does not trigger the queries, is there a way to check the code which triggers this?
If i need to modify the queries or the code behind, how/where do I check?

The code behind this all takes a while to execute all the queries and I need to see if they are all used or if few of them are redundant?

TIA
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Why not just run it and see?
As I mentioned, it is an inherited DB and contains sensitive data. Also, I am unable to see the codes, queries and tables involved with this macro.
How do I check those objects involved.
 
Upvote 0
A quick Google shows it is Alt key +RR, so perhaps a shortcut to run those queries?

So run that key sequence manually?
What is the extension of the DB?

However the macro is called RefreshRecords? Does that not give you a clue?
 
Upvote 0
What I need is to see the contents specified in the macro. There are no queries or modules listed in the macro.
It is .accdb
I can understand that it obviously refreshes but what does it refresh?
 
Upvote 0
That would depend on what context it is called?
I have only ever used macros for bat h actions.
Look for how a macro is called from a macro or vba. I think if called from a macro, that will be harder to find. VBA is much easier to debug.
 
Upvote 0
I believe it simply requeries the active form.
Tried the keystrokes on two of my dbs and that is the effect.
 
Upvote 0
When I open the database, it triggers few queries before the main form is visible.
I looked for the AutoExec but do not see one.
Possibly the creator chose to hide it or the form might have an embedded macro that runs the queries before displaying the form. There is a setting in options that allows you to see hidden objects, but you want to be careful with that.

Also possible that SendKeys is requerying that form, which will automatically cause a query to run. However, if more than one query runs or actually opens as a datasheet then I say that's not it.
 
Upvote 0

Forum statistics

Threads
1,223,896
Messages
6,175,259
Members
452,626
Latest member
huntinghunter

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top