Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Trip
 
Posts: n/a
Default JET dB Newbie Needs Help

Hello all,

I'm haveing a bit of a problem with writing to a jet dB and looking for
a little help.

The problem is that for some reason data is sudenly being written to
the end of the new data which is appearing BEFORE the older data. It
is as though JET does not recognize the fact that the older data even
exists. Each time a record is added it writes it to the end of the
more recent data and pushes down all the previously existing data.

This is how I open the dB and recordset: (please excuse word wraping)

Set eScalperDB = OpenDatabase("C:\Documents and Settings\My
Databases\eScalper.mdb")

Set rstTickData = eScalperDB.OpenRecordset("Table_Tick_Data",
dbOpenDynaset)

I then add to the dB as follows...

DateStamp = ThisWorkbook.Sheets("Data").Range("A2")
TimeStamp = ThisWorkbook.Sheets("Data").Range("B2")
LastTick = ThisWorkbook.Sheets("Data").Range("C2")
With rstTickData
.addnew
!Date_Stamp = DateStamp
!Time_Stamp = TimeStamp
!Last = LastTick
.Update
.bookmark = .LastModified
End With

According to Help, opening a record set as Dynaset means that data will
be written to the end of the file.


Any ideas????

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
newbie seeks excel help - please!! earthgirluk New Users to Excel 2 June 23rd 05 12:54 PM
newbie needs help in Ezcel programming Amy Excel Discussion (Misc queries) 1 March 22nd 05 02:18 PM
newbie needs help in Ezcel programming Amy Excel Discussion (Misc queries) 0 March 22nd 05 02:17 PM
vlookup (newbie, STILL) Ken New Users to Excel 5 December 30th 04 03:11 PM
Newbie question Doh New Users to Excel 5 December 16th 04 09:31 PM


All times are GMT +1. The time now is 10:33 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"