P
Phred Bear
I'm extracting some data from a P/W protected Access 2000 db, coding within
Access, to populate a map in MSP98. I can't get the syntax right to open the
project file without opening the "Password" messagebox in MS Project.
Since I need to ask the user earlier on for the password to gain access to
the db, I want to eliminate this additional request for the password. I
think I am not configuring the FileOpen arguments correctly because under
certain circumstances DatabasePassWord is ignored.
here is the code:
..MapEdit Name:="Map 6", Create:=True, OverwriteExisting:=True,
DataCategory:=0, CategoryEnabled:=True, TableName:="BarChart",
FieldName:="ID", ExternalFieldName:="ID", ExportFilter:="All Tasks",
ImportMethod:=pjImportAppend, HeaderRow:=True
.MapEdit Name:="Map 6", DataCategory:=0, FieldName:="Name",
ExternalFieldName:="Ref No"
Several lines of MapEdit, then:
.FileOpen Name:=dbName, ReadOnly:=False, Merge:=0,
DatabasePassWord:="ThePassword", map:="Map 6"
dbName is a variable containing the path and name of the db, such as
"C:\Fred.mdb".
Any hints?
Access, to populate a map in MSP98. I can't get the syntax right to open the
project file without opening the "Password" messagebox in MS Project.
Since I need to ask the user earlier on for the password to gain access to
the db, I want to eliminate this additional request for the password. I
think I am not configuring the FileOpen arguments correctly because under
certain circumstances DatabasePassWord is ignored.
here is the code:
..MapEdit Name:="Map 6", Create:=True, OverwriteExisting:=True,
DataCategory:=0, CategoryEnabled:=True, TableName:="BarChart",
FieldName:="ID", ExternalFieldName:="ID", ExportFilter:="All Tasks",
ImportMethod:=pjImportAppend, HeaderRow:=True
.MapEdit Name:="Map 6", DataCategory:=0, FieldName:="Name",
ExternalFieldName:="Ref No"
Several lines of MapEdit, then:
.FileOpen Name:=dbName, ReadOnly:=False, Merge:=0,
DatabasePassWord:="ThePassword", map:="Map 6"
dbName is a variable containing the path and name of the db, such as
"C:\Fred.mdb".
Any hints?