I wonder...

miffe

New Member
Joined
May 3, 2006
Messages
15
We all know that it's dead easy to execute Query's and bring data from access into excel, as well as outputing cells from excel into access (.mdb)'s...

BUT...

Is it possible to execute a query from excel to retrieve the number of records in an access database in a remote computer? If so... how?

Thx -
Miffe
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.

SydneyGeek

MrExcel MVP
Joined
Aug 5, 2003
Messages
12,251
Miffe,

The steps would be...

1. Create a recordset based on the table
2. MoveLast in the recordset
3. Return the RecordCount

You can only get the number of records by going to the end of the recordset, as far as I know

Denis
 

Forum statistics

Threads
1,140,913
Messages
5,703,141
Members
421,278
Latest member
16cwilliams

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
Top