Transfer Spreadsheet method in visual basic

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • edralyn
    New Member
    • Feb 2007
    • 5

    #1

    Transfer Spreadsheet method in visual basic

    hello everyone! i have a problem in coding for my system...i want to know how could i use the
    Code:
    Const transferDir = "c:\my documents\"
    rangeName = "Companies"
    tableName = "Companies"
    DoCmd.RunSQL "delete from " & tableName
    DoCmd.TransferSpreadsheet acImport, 8, tableName, _
    transferDir & "OriginalData.xls", True, rangeName
    i want this code to be transferred.. which i will not use SQL as my backend but MS Access....pleas e i need your help guys....thanks
    Last edited by willakawill; Mar 4 '07, 05:18 PM. Reason: code tags have square [] brackets
  • willakawill
    Top Contributor
    • Oct 2006
    • 1646

    #2
    As you are using vba and access, I have moved your question to the access forum

    Comment

    Working...