Microsoft Developer Network > 포럼 홈 > Visual Basic for Applications (VBA) > Migrating data from MS Access to MS Excel using VBA code...calling all VBA Experts!!
질문하기질문하기
 

답변됨Migrating data from MS Access to MS Excel using VBA code...calling all VBA Experts!!

  • 2009년 7월 9일 목요일 오전 7:12Excited4VBA 사용자 메달사용자 메달사용자 메달사용자 메달사용자 메달
     
    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! :-)
    • 이동됨Reed Kimble 2009년 7월 9일 목요일 오후 3:41VBA in VB Language (From:Visual Basic Language)
    •  

답변

  • 2009년 7월 9일 목요일 오후 4:24ADG 사용자 메달사용자 메달사용자 메달사용자 메달사용자 메달
     답변됨

    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

    • 답변으로 표시됨Excited4VBA 2009년 7월 9일 목요일 오후 6:51
    •  

모든 응답