Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 44
Default Checking dB for New Records Using DAO??

Hello again all,

Another question to all of you "in the know".

I would like to speed-up the process of reading updates to a dB. Right
now, between the write of one application and the read of this
application across a [very small 100 mbit] network takes about 2
seconds.

How can I pole a dB to check for new records without closing and
reopening the dB? Is there another way to refresh the dB connection so
that the record-set has the newest record? Or, is this simply a matter
of reducing the size of the record set? Is there ADO functionality I
could use that not in DAO? How do I speed this up?

Here's how I do it now...

Set eScalperDB = OpenDatabase("E:\My Databases\eScalper.mdb", False,
True)

.... (in another module that loops 0.3 seconds)....

Set rstTickDataRead = eScalperDB.OpenRecordset("Select * FROM
Table_Tick_Data WHERE Date_Stamp = #: & Date & "# ORDER BY Date_Stamp,
Time_Stamp", dbOpenDynaset)

eScalperDB.TableDefs.Delete ("Table_Tick_Data")

eScalperDB.Close
...........................

As you can see I am opening and closing the dB connection every time I
pole. I have found that even if I write to the dB (from another
application) and pole the dB (from this application) every one-third of
a second it still takes two seconds for the this application to update.

Any thoughts would be great!

Thanks!!!

Trip

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
Spreadsheet - Deleting Duplicate Records - Self Checking APV-onlyownerknowinganyIT Excel Worksheet Functions 1 January 26th 10 11:05 PM
Delete records when certain records have duplicate column data JVroom New Users to Excel 1 January 26th 09 06:23 PM
Spell Checking with checking cell notes jfitzpat Excel Discussion (Misc queries) 0 August 8th 07 10:26 PM
Checking for duplicate records / rows Hru48 Excel Discussion (Misc queries) 2 February 26th 06 11:12 PM
Need Help with checking records Charles Excel Programming 1 January 29th 04 07:48 AM


All times are GMT +1. The time now is 11:09 PM.

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

About Us

"It's about Microsoft Excel"