V
Volker Uffelmann
Hi,
I've been skimming the (google) groups for a long time now and I can't find
a hint to a solution for my problem.
I have the following code:
Dim db As Database, tbl As TableDef, rel As Relation, rs As Recordset,
idx As Index, fld As Field
Set db = CurrentDb
For Each tbl In db.TableDefs
For Each idx In tbl.Indexes
If idx.Primary = True Then
For Each fld In idx.Fields
Debug.Print fld.Name
' works as expected
Debug.Print fld.Type
' error 3219 - invalid operation
' or alternatively:
' Debug.Print fld.Properties("Type").Value
' error 3219 - invalid operation
Next fld
End If
Next idx
Next tbl
The tables are directly in the mdb and I'm running Access2000 SP1a on XP Pro
SP 1 - what might cause the problem, and (even more important how can I
get around it?
Any help would be greatly appreciated.
Regards,
- Volker
I've been skimming the (google) groups for a long time now and I can't find
a hint to a solution for my problem.
I have the following code:
Dim db As Database, tbl As TableDef, rel As Relation, rs As Recordset,
idx As Index, fld As Field
Set db = CurrentDb
For Each tbl In db.TableDefs
For Each idx In tbl.Indexes
If idx.Primary = True Then
For Each fld In idx.Fields
Debug.Print fld.Name
' works as expected
Debug.Print fld.Type
' error 3219 - invalid operation
' or alternatively:
' Debug.Print fld.Properties("Type").Value
' error 3219 - invalid operation
Next fld
End If
Next idx
Next tbl
The tables are directly in the mdb and I'm running Access2000 SP1a on XP Pro
SP 1 - what might cause the problem, and (even more important how can I
get around it?
Any help would be greatly appreciated.
Regards,
- Volker