Results 1 to 6 of 6

Thread: How to make a Chart (MS Chart) with data from a DB????

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jan 2001
    Location
    United Kingdom
    Posts
    86

    Arrow

    Hi all,


    Can u show me how to have a chart produced from data directly (or indirectly) from a MDB (access2000)???



    An example project would be brilliant, or the code???




    Please help
    Kieran Smith
    'Computing' A Level Student

    [email protected]
    Visit my Home Page

    Visual C++ 6.0 Pro
    Visual Basic 6.0 Ent
    SQL, ADO, DAO


    "Computers in the future may weigh no more than 1.5 tons."
    -- Popular Mechanics, forecasting the relentless march of science, 1949

  2. #2
    PowerPoster Chris's Avatar
    Join Date
    Jan 1999
    Location
    K-PAX
    Posts
    3,238
    kiesmithuk, here is a sample code for you.

    Enjoy it!
    Attached Files Attached Files

  3. #3
    gaffa
    Guest
    Don't forget that MSChart leaks memory like a sieve, so if that's a concern, get a better charting control.

    - gaffa

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Jan 2001
    Location
    United Kingdom
    Posts
    86
    Thanks Chris that was just what i was after :-), now ill just convert it to DAO and wahey
    Kieran Smith
    'Computing' A Level Student

    [email protected]
    Visit my Home Page

    Visual C++ 6.0 Pro
    Visual Basic 6.0 Ent
    SQL, ADO, DAO


    "Computers in the future may weigh no more than 1.5 tons."
    -- Popular Mechanics, forecasting the relentless march of science, 1949

  5. #5
    PowerPoster Chris's Avatar
    Join Date
    Jan 1999
    Location
    K-PAX
    Posts
    3,238
    Oops, I was using the ADO object why not continue use the ADO? since that the trend for the database accessing in VB. 'coz DAO is rather old and less function as compare to ADO, although in some occasion it ran faster

  6. #6

    Thread Starter
    Lively Member
    Join Date
    Jan 2001
    Location
    United Kingdom
    Posts
    86
    Well in my project i have used DAO throughout so it would make no sense to use ADO just for the chart as it would not be consistent with the rest of my project. I have found DAO to be more or less as fast as of yet, although it is old, it is still good.
    Kieran Smith
    'Computing' A Level Student

    [email protected]
    Visit my Home Page

    Visual C++ 6.0 Pro
    Visual Basic 6.0 Ent
    SQL, ADO, DAO


    "Computers in the future may weigh no more than 1.5 tons."
    -- Popular Mechanics, forecasting the relentless march of science, 1949

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