N
Nigel D
I have converted a database from Access 2003 to 2007, but the VBA project
will not compile/run. The problem seems to be with the DAO, but when I go
into Tools References and add the MS DAO 3.6 object library back in I get an
error saying 'Name conflicts with existing module, project, or object
library'. The code it falls over on is:
Dim MyIndex As Index
Set MyIndex = MyTable.CreateIndex("PrimaryKey")
With MyIndex
.Primary = True 'falls over on this section
.Required = True
.Unique = True
End With
The message I get is 'Method or Data Member not found'. Does anyone have any
idea how to resolve this?
Many thanks
will not compile/run. The problem seems to be with the DAO, but when I go
into Tools References and add the MS DAO 3.6 object library back in I get an
error saying 'Name conflicts with existing module, project, or object
library'. The code it falls over on is:
Dim MyIndex As Index
Set MyIndex = MyTable.CreateIndex("PrimaryKey")
With MyIndex
.Primary = True 'falls over on this section
.Required = True
.Unique = True
End With
The message I get is 'Method or Data Member not found'. Does anyone have any
idea how to resolve this?
Many thanks