Automation objects and versioning betwee 2000 and 2002

B

BJ Freeman

I have an 2000 ADE using office 2000 automation.
I have a client that tries to run this on their 2002 office
they are getting a 400 error when trying use the excel automation.

in the vba references I have the office 2000 excel object and 2000 access
object declared.

this has not been a problem for other clients using the same 2000 object on
a 2002 office machine.

Any Ideas where to look.
 
B

BJ Freeman

I have even rebuilt the ADE from the a New ADP and put in the code.
Dim AppXL As Excel.Application

filename = getfile(CurrentProject.Path, "open order report*.xls")
If InStr(filename, "no files found.") > 0 Then
MsgBox " unable to find File " & filename)"
Exit Sub
End If
Set AppXL = CreateObject("Excel.Application")
AppXL.Workbooks.Open (filename)
AppXL.Visible = True
----do some stuff on excel
-- works up to here.
AppXL.ActiveWorkbook.Close , True, filename
the excel will not close. mayber this has been removed in 2002 excel
object.
DoCmd.TransferSpreadsheet acImport, 8, "OpenOrders", filename, True
CurrentProject.connection.Execute "ADP_UpdtOpenOrders"
MsgBox "open orders imported"
 
A

Adam Bunter

BJ said:
I have an 2000 ADE using office 2000 automation.
I have a client that tries to run this on their 2002 office
they are getting a 400 error when trying use the excel automation.

in the vba references I have the office 2000 excel object and 2000 access
object declared.

this has not been a problem for other clients using the same 2000 object on
a 2002 office machine.

Any Ideas where to look.

Remove the reference to the excel library and use late binding.
 
B

BJ Freeman

Thanks. will do that.
found the problem. I have the ACCRT on my computer. the ADE has linked to
it, instead of the standard Access.exe path.
This client has not put the ACCRT2000 on their computer.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top