R
Rob
Attached Below is the Code that i have created.
Private Sub Command14_Click()
' 1 Run FileConversion.vbs script
' 2 Open Partmstr.xlsm run macro impt, then save and close
' 3 Import partmstr file from the AWlabels file to the AW-Saleable table
Const OverwriteExisting = True
Set objFSO = CreateObject("Scripting.FileSystemObject")
objFSO.CopyFile "\\file\All\Labels\partmstr.dat",
"\\file\Databases\LABELROOM\PARTMSTR.TXT", OverwriteExisting
Dim oApp As Object
Set oApp = CreateObject("Excel.Application")
oApp.Visible = True
oApp.Workbooks.Open FileName:="\\file\Databases\LABELROOM\Partmstr.xlsm"
oApp.Visible = False
oApp.UserControl = True
oApp.Quit
'have an error going on about text greater than 255 need a resume next cmd
DoCmd.TransferSpreadsheet acImportDelim, , "AW-Saleable",
"\\file\Databases\LABELROOM\partmstr.XLSM", False
End Sub
First issue is i have is i get an error about text greater than 255 (from
Excel to Access 07)
The Second issue is i would like to just import the first 9 colums of the
data in the Excel sheet to the AW-saleable table, and either before or after
the import change the fourth colum in the AW-Saleable table from text to memo
The Excel file is updated on a daily basis...any ideas how to help.
Private Sub Command14_Click()
' 1 Run FileConversion.vbs script
' 2 Open Partmstr.xlsm run macro impt, then save and close
' 3 Import partmstr file from the AWlabels file to the AW-Saleable table
Const OverwriteExisting = True
Set objFSO = CreateObject("Scripting.FileSystemObject")
objFSO.CopyFile "\\file\All\Labels\partmstr.dat",
"\\file\Databases\LABELROOM\PARTMSTR.TXT", OverwriteExisting
Dim oApp As Object
Set oApp = CreateObject("Excel.Application")
oApp.Visible = True
oApp.Workbooks.Open FileName:="\\file\Databases\LABELROOM\Partmstr.xlsm"
oApp.Visible = False
oApp.UserControl = True
oApp.Quit
'have an error going on about text greater than 255 need a resume next cmd
DoCmd.TransferSpreadsheet acImportDelim, , "AW-Saleable",
"\\file\Databases\LABELROOM\partmstr.XLSM", False
End Sub
First issue is i have is i get an error about text greater than 255 (from
Excel to Access 07)
The Second issue is i would like to just import the first 9 colums of the
data in the Excel sheet to the AW-saleable table, and either before or after
the import change the fourth colum in the AW-Saleable table from text to memo
The Excel file is updated on a daily basis...any ideas how to help.