sharing/add data wiith ADO between VB6 and Excel?

From: PetitTrot (petit.galop_at_cowboy.ca)
Date: 08/31/04


Date: Mon, 30 Aug 2004 23:07:30 -0400


Here I have a «mixed» program with VB6 and Excel

1) VB6 open an Excel Workbook
2) VB6 open an database and Excel open also the same database (local
database: MS Access 2000, use ADO)
3) VB6 run an Excel macro
4) this macro add data into database i.e. new record
5) after run Excel macro, VB6 continue
6) later VB read data - but new record, from step 4), is not accessible

My hypothese is: ADO add new data (record) «in memory» (RAM)
                               the command Update for recordset, not write
immediatly the new data in database
                              I search if possible force Excel write
immediatlly new data in database (flush memory)

Do you have comments?



Relevant Pages

  • Re: sharing/add data wiith ADO between VB6 and Excel?
    ... Jet to connect to the Excel file and it caches changes in memory for 5 ... > 1) VB6 open an Excel Workbook ... > database: ... > 5) after run Excel macro, ...
    (microsoft.public.data.ado)
  • Re: Using Excel data in a VB6 database
    ... My VB6 application needs customer data like ... This customer data is available in Excel sheets. ... I think the easiest way is to use some database which is ...
    (comp.programming)
  • Re: Using Excel data in a VB6 database
    ... This customer data is available in Excel sheets. ... I think the easiest way is to use some database which is ... Anyway, if you can access ODBC databases from VB6, I guess ...
    (comp.programming)
  • Re: How to control button in the form if i have more than 1 user p
    ... Can we clarify that you are indeed doing this in VB6. ... Excel is a poor man's database. ...
    (microsoft.public.vb.general.discussion)
  • Re: What advantage ACCESS over EXCEL?
    ... answer was "we dont trust the Standard times on the Routers", ... EXCEL, well, if it's within EXCEL's size limits, then just about anything ... a relational database like Access can store that information once as ...
    (microsoft.public.access.gettingstarted)