CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Jan 2000
    Location
    Ireland
    Posts
    2

    Visual Basic Database

    Hi

    I have a program that is used to pull information from one database table to another and i need some code to slow down the process as at the moment the program is running to fast and is not pulling all the required records on the first pass. Does anyone have any solution for this. The size of the table is between 3,500 and 5,500 records and can vary.

    Any help would be great

    Ann

    Ann Cronin

  2. #2
    Join Date
    Jan 2000
    Location
    Colorado
    Posts
    9

    Re: Visual Basic Database

    Depends. Are you using ADO or DAO. I am assuming that you are opening a recordset. If so, request the record count. That will force JET to read the entire recordset.
    However, if you are just moving data (not doing a bunch of manipulation of it in between) then I would just use a SQL query that would do the work for you. You might search INSERT in MSDN.


  3. #3
    Join Date
    Jan 2000
    Location
    Ireland
    Posts
    2

    Re: Visual Basic Database

    Hi,

    I'm using ADO. I have a recordset open. For some reason even though i have the criteria set all the information is not pulled on the first pass. I have already requested the recordcount in the code and it is looping through the code until the .eof is reached.

    Ann Cronin

  4. #4
    Join Date
    Jan 2000
    Location
    Colorado
    Posts
    9

    Re: Visual Basic Database

    If you send me the code and zip up the database I would be happy to look it over for you. I've been doing database conversion for several years and should be able to find your problem for you.
    My e-mail is [email protected]
    If you are using ADO be sure that you are not using any adobatch* options in your open command.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured