I have an Access2000 table I would to try creating via
VB.
There are a few ways to go about doing it. The easiest way is a make table
query, but you could also just run the SQL for it like this:
SELECT "field1" AS Expr1, "field2" AS Expr2, "field3" AS Expr3 INTO testbl;
I wrote a little app that would produce a simple SQL DDL
script, essentially a CREATE TABLE with all the columns,
including data type mappings, max character width or
numeric scale/precision, NULL or NOT NULL, any DEFAUL
values and testing for things such as reserved works,
illegal characters, presence of IDENTITY (autonumber)
properties, etc. Soon I wanted the PRIMARY KEY
constraints, logically followed by the FOREIGN KEYS so I
had to also include UNIQUE INDEX constraints.
I did it for the learning process and for fun but my point
is, it gets complicated e.g. just my CColumn class module
comprises 2000 lines of code. A third party app could be
appealing...
BTW I use ADO's OpenSchema method.
Jamie.
--