vba - Connecting to Access from Excel, then create table from txt file -
i writing vba code excel workbook. able open connection access database, , import txt file (pipe delimited) , create new table in database txt file. have searched everywhere no avail. have been able find vba code accomplish within access itself, rather excel. please help! thank you
google "open access database excel vba" , you'll find lots of resources. here's general idea though:
dim db access.application public sub opendb() set db = new access.application db.opencurrentdatabase "c:\my documents\db2.mdb" db.application.visible = true end sub you can use data access technology odbc or adodb. i'd if you're planning more extensive functionality. luck!
Comments
Post a Comment