PC Review


Reply
Thread Tools Rate Thread

adjusting a macro that retreives access data

 
 
=?Utf-8?B?dGltbXVsbGE=?=
Guest
Posts: n/a
 
      7th Mar 2007
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 With Quote
 
 
 
 
NickHK
Guest
Posts: n/a
 
      7th Mar 2007
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" <(E-Mail Removed)> wrote in message
news:EB591487-E3D3-4FA0-B2D2-(E-Mail Removed)...
> 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 With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding data to table that retreives data from another table BZeyger Microsoft Access VBA Modules 2 5th Oct 2009 01:14 PM
Adjusting a Macro TGalin Microsoft Excel Programming 10 15th Mar 2009 03:04 PM
Adjusting Macro =?Utf-8?B?TS5BLlR5bGVy?= Microsoft Excel Misc 2 24th Mar 2007 06:07 PM
Chart Adjusting Macro II chesharma@gmail.com Microsoft Excel Programming 4 5th Jun 2006 02:53 PM
adjusting the range of cells in macro CJ Microsoft Excel Worksheet Functions 0 29th Jul 2003 11:44 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:14 AM.