B
BF
Hello,
I got this code from Dirk Goldgar (thank you very much)
for looping through a table collection in Access2002
Dim ao As AccessObject
For Each ao In CurrentData.AllTables
Debug.Print ao.Name
Next ao
where before in Acc97 I was using a DAO database and
tabledef object. Dirk also explained that I could make a
reference to DAO 3.6 and still use the methods from
Acc97. My question is if there is an Access2002 method
for looping through the fields in a tabledef object?
I was experimenting with the AccessObject datatype but
can't figure out how to access a field object. I can
still access a field object with DAO 3.6 using the Acc97
method
Dim DB..., tdf, fld
....
For Each fld In tdf.Fields...
I am just hoping to migrate my code to Access2002 version
of coding where applicable.
Thanks
I got this code from Dirk Goldgar (thank you very much)
for looping through a table collection in Access2002
Dim ao As AccessObject
For Each ao In CurrentData.AllTables
Debug.Print ao.Name
Next ao
where before in Acc97 I was using a DAO database and
tabledef object. Dirk also explained that I could make a
reference to DAO 3.6 and still use the methods from
Acc97. My question is if there is an Access2002 method
for looping through the fields in a tabledef object?
I was experimenting with the AccessObject datatype but
can't figure out how to access a field object. I can
still access a field object with DAO 3.6 using the Acc97
method
Dim DB..., tdf, fld
....
For Each fld In tdf.Fields...
I am just hoping to migrate my code to Access2002 version
of coding where applicable.
Thanks