R
R. Johnson
Using Access 2002 SP-2.
I want to join a native table to a table that is imported from a query in
another DB, so I started with the sample CreateRelation code in the Help
file. The first line is
Dim dbs As Database, rel As Relation, fld As Field
I get an undefined data-type error for Database and Relation (but Field is
fine). So, I was going to try a Type statement to create them. But the Type
statement wants at least one "element" in the type, and all of the Help file
example data types' elements appear to be table-like fields. I don't know
what elements to use in defining Database and Relation, or what data-types
the elements should be (I assume Object, but I don't know).
(This is new VBA turf for me.)
I want to join a native table to a table that is imported from a query in
another DB, so I started with the sample CreateRelation code in the Help
file. The first line is
Dim dbs As Database, rel As Relation, fld As Field
I get an undefined data-type error for Database and Relation (but Field is
fine). So, I was going to try a Type statement to create them. But the Type
statement wants at least one "element" in the type, and all of the Help file
example data types' elements appear to be table-like fields. I don't know
what elements to use in defining Database and Relation, or what data-types
the elements should be (I assume Object, but I don't know).
(This is new VBA turf for me.)