Access to MS Project export problem

G

Guest

I have an Access DB exporting schedule data to MS Project via code. It works
fine on my laptop. The DB and Project files are on a server. When anyone else
runs the export function in the DB from another PC it reports a syntax error
at the "Set oProject = GetObject(PathName)" statement below and won't export
data to the Project file. I had the same problem on my PC at first but adding
the DAO 3.6 library and couple of others fixed the problem. The added
references are there regardless of which other PC I open the DB with. Also
checked the ones in MS Project and they all match what my PC shows too.

Any idea what's causing the error and how to fix it so other Users can run
the export function from their PC's?

Function Main_Update_Project(PathName As String, TableName As String)
'This is the second procedure called.

'Assign this as a recordset variable.
Dim rstExportTable As Recordset
'Now fill the recordset with the records in the table identified by the
TableName argument
Set rstExportTable = CurrentDb.OpenRecordset(TableName)

Set oProject = GetObject(PathName)

Call Sub_Update_Project(oProject, rstExportTable, PathName)

'Set oProject = Nothing
Set rstExportTable = Nothing
 
A

Alex Dybenko

What error line:
Set oProject = GetObject(PathName)
causing?
probably you have different versions of Projects and use early bindings?
then try to use late bindings
 
G

Guest

What code did you use to do this? I am a fairly new user to Access, and I
need to create a Gant chart based on dates from my Access database.
 

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