Hi all,
I need to upload a worksheet from Excel to a MS Access DB.
Though I have successfully to this by using the TransferSpreadsheet method, there are no message informing the total of records added to the table.
Here is the code in Excel which call another procedure(ImportRem) in that DB to start the transfer process.
Set appAcc = Access.Application
x = Application.GetOpenFilename _
("Access Files (*.mdb), .mdb", 1, _
"Open Time Sheet Database", , False)
appAcc.OpenCurrentDatabase x
appAcc.Visible = True
appAcc.Run "ImportRem", PathNames
If process is run manually in MS Access, normaly there will be a message saying how many records is going to be added to the table but that seems to be not the case from code.
Hope you all can advise on the correct steps.
mderby
I need to upload a worksheet from Excel to a MS Access DB.
Though I have successfully to this by using the TransferSpreadsheet method, there are no message informing the total of records added to the table.
Here is the code in Excel which call another procedure(ImportRem) in that DB to start the transfer process.
Set appAcc = Access.Application
x = Application.GetOpenFilename _
("Access Files (*.mdb), .mdb", 1, _
"Open Time Sheet Database", , False)
appAcc.OpenCurrentDatabase x
appAcc.Visible = True
appAcc.Run "ImportRem", PathNames
If process is run manually in MS Access, normaly there will be a message saying how many records is going to be added to the table but that seems to be not the case from code.
Hope you all can advise on the correct steps.
mderby