Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 46
Default adjusting a macro that retreives access data

Can anyone help me adjust the "big macro" GetDataFromAccess from the
following link, so that it counts the number of records, not retreive them in
the test examples ?

http://www.rondebruin.nl/accessexcel.htm

Any help would be appreciated.
--
Regards,

timmulla
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default adjusting a macro that retreives access data

You can check the .RecordCount property of the returned recordset. For this
to give reliable results, you need a client-side cursor also. something like
this as far as I remember:

With MyDatabase
.CursorLocation = adUseClient
.Open MySQL, MyConnection, 0, 1, 1
MsgBox .RecordCount
End Sub

NickHK

"timmulla" wrote in message
...
Can anyone help me adjust the "big macro" GetDataFromAccess from the
following link, so that it counts the number of records, not retreive them

in
the test examples ?

http://www.rondebruin.nl/accessexcel.htm

Any help would be appreciated.
--
Regards,

timmulla



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Adjusting comment box size by Macro yshridhar Excel Discussion (Misc queries) 2 February 5th 08 09:19 AM
Adjusting Macro M.A.Tyler Excel Discussion (Misc queries) 2 March 24th 07 06:07 PM
Is there an excel funtion that retreives the last cell of a list Bumblebee Excel Worksheet Functions 2 August 16th 06 10:13 AM
Chart Adjusting Macro II [email protected] Excel Programming 3 June 5th 06 02:53 PM
Macro / VBA adjusting variable columns PaulW Excel Discussion (Misc queries) 1 April 23rd 06 08:25 AM


All times are GMT +1. The time now is 01:08 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"