Re: can the loading of a large number of records go as quick as in DOS

Tech-Archive recommends: Speed Up your PC by fixing your registry



On 15 mei, 14:36, "Dave O." <nob...@xxxxxxxxxxx> wrote:
If you are using OBDC/DAO/whatever to read from a MDB then it should be OK.
From your posting it seems that the old program only loaded data as it was
needed, why can't you use a similar philosophy here?
Secondly is there an apparent delay because the program does not display
until the data is loaded? if so move the data load out of the Form_Load, let
the program show itself then add then records.
There are at least as many different ways to do this as there are
programmers, but as you have given us virtually zero information as to how
you are doing this now, it's not easy to offer firm suggestions as to how to
improve matters.

Regards
Dave O.

"catharinus" <csvanderw...@xxxxxxxxx> wrote in message

news:3f8a6703-6f51-450d-96ac-397caa442bd4@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx



Hello

I have build a windows-copy of a DOS-accounting program.
All works nice, but the only thing that bothers me is the fact
that loading a large number of records is not as quick as in DOS.
How can I solve that problem. The data are shown in a MSHFlexGrid and
comes from an Access-database.

The diference between the DOS-and Windows program is probarbly caused
by using a different technic. It looks as DOS reads all the time from
and to the hard disk (and thus has only the visible records /data in
the memory) as Windows first loads all the records and so has all
these records all the time in memory.

Am I right and is there a solution for the delaying loading in the
windows-
program?
Thanks
Catharinus van der Werf
csvanderw...@xxxxxxxxxx Tekst uit oorspronkelijk bericht niet weergeven -

- Tekst uit oorspronkelijk bericht weergeven -

Oke Dave.

you' re right. I didn;t explain enough. I load the data via Form_load
and use ADO
I open a ADO-connection in which I try to select only the records
needed, but that is
and stays a problem when having 3000 records, because during the
loading I can't exercise
any action

I do this for example as follows:

dim conConnection as adodb.connection
dim mrstRecordSet as adodb.recordset
set ConConnection=new ADODB.Connection
conConnection.ConnectionString = "Provider=Microsoft.jet.OLEDB.4.0;
Data Source =\\Database.mdb"
conConnection.Open conConnection.ConnectionString
set mrstRecordSet=Conconnection.execute("Select * from TABELA order by
Number")
do while not mrstRecordSet.EOF

me.text1(0).text=mrstRecordSet.fields(0).value
mrstRecordSet.movenext
loop

This takes tooo long when I need to load 3000 records. Is there a
faster way??
Thanks

Catharinus van der Werf
csvanderwef@xxxxxxxxx

.



Relevant Pages

  • Re: Jump ends nowhere?!
    ... it would load al sectors of this code... ... it jumps to is more than 2048 bytes away. ... information from 001.- Tekst uit oorspronkelijk bericht niet weergeven - ...
    (alt.lang.asm)
  • Re: can the loading of a large number of records go as quick as in DOS
    ... you load the data, and set it to tru when you are done. ... these records all the time in memory. ... Tekst uit oorspronkelijk bericht weergeven - ...
    (microsoft.public.vb.general.discussion)
  • Re: Threads in Visual Basic?
    ... loaded data later. ... It's not that much data, it's just coming over a slow WAN link, which ... I'd like the data to load in the background while they log in. ... and your app will be notified when data is ...
    (comp.lang.basic.visual.misc)
  • Re: read text files
    ... way to read the files in order without using load several ... myorder = sortfilenames; ... memory, just load them in any order, saving the loaded data into a cell ... then after they are all loaded, process the cell array in whatever ...
    (comp.soft-sys.matlab)
  • Re: Jump ends nowhere?!
    ... it would load al sectors of this code... ... it jumps to is more than 2048 bytes away. ... information from 001.- Tekst uit oorspronkelijk bericht niet weergeven - ...
    (alt.lang.asm)