Running Total Access Stats Queries in A Macro

Elisha

New Member
Joined
Apr 27, 2004
Messages
26
I'm using Access 2000 and have written several queries in the Total Access Statistics 2000 Add-in. Is there any way to run these in a macro? I don't see any predefined. I was told that you can probably write a VBA macro (module in Access) to do this and then RunCode from Access. Anyone know if this works and/or have any samples? Thanks.
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
You probably want OpenQuery or RunSQL to do this via Macros.
VBA/Macros can be quite similar. Many VBA methods are in actuality Macro commands.

As a suggestion, setup a command as a Macro and then use the Conversion utilty under the Tools Menu to convert it to VBA. Take a look, figure out how it works, and learn from there.

Mike
 
Upvote 0
Nothing so far. I don't really know VBA at all - know more how to change other peoples' macros though. I have no idea how VBA would even call the Total Access Stats queries.
 
Upvote 0
I have no Idea what Total Access Stats queries are but to open a query and show its data you use a command like
DoCmd.OpenQuery "qryShowData"
where "qryShowData" is the name of the query.
This code would go behind the click event of a button on a form for example.

If you want you can create the buttun using the wizard and that will take you through it step by step.

If you want to do something other than just open the query datasheet then you will have to give us a bit more detail of what you need.

Peter
 
Upvote 0

Forum statistics

Threads
1,221,713
Messages
6,161,463
Members
451,708
Latest member
PedroMoss2268

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