Microsoft Developer Network > Página Inicial dos Fóruns > Visual Basic for Applications (VBA) > Migrating data from MS Access to MS Excel using VBA code...calling all VBA Experts!!
Fazer uma PerguntaFazer uma Pergunta
 

RespondidoMigrating data from MS Access to MS Excel using VBA code...calling all VBA Experts!!

  • quinta-feira, 9 de julho de 2009 7:12Excited4VBA Medalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuário
     
    Hi, this is probably a basic question for some of guru's out there. But I'm trying to migrate data (2,500 records) from an MS Access database to an MS Excel database and also to a inhouse database. Would any one know of any VBA code I could use to migrate this data to both packages? Thanks! :-)
    • MovidoReed Kimble quinta-feira, 9 de julho de 2009 15:41VBA in VB Language (From:Visual Basic Language)
    •  

Respostas

  • quinta-feira, 9 de julho de 2009 16:24ADG Medalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuário
     Respondido

    Hi, easiest way to get data into excel is to use a query on one of your sheets that will refresh on open. If you want to use vba you can use AODB to get a recordset and the copyfromrecordset method. In terms of your inhouse database you will need to find out what import functionality this has and the necessary file format.

    Regards

    ADG

    • Marcado como RespostaExcited4VBA quinta-feira, 9 de julho de 2009 18:51
    •  

Todas as Respostas