dbTalk Databases Forums  

ADOX Table.Append error

comp.database.ms-access comp.database.ms-access


Discuss ADOX Table.Append error in the comp.database.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
JH Higgins
 
Posts: n/a

Default ADOX Table.Append error - 01-23-2004 , 04:03 PM






I've got some elementary ADO code where I'm trying to append a jet
table to the tables collection of an access 2000 database
--------------------
Dim catCatalog As ADOX.Catalog
Dim tblTemp As ADOX.Table

Set catCatalog = New ADOX.Catalog
catCatalog.ActiveConnection = CurrentProject.Connection

Set tblTemp = New ADOX.Table
Set tblTemp.ParentCatalog = catCatalog
tblTemp.Name = "tblTemp"
tblTemp.Columns.Append "ID", adVarChar
tblTemp.Columns.Append "CompositeScore", adVariant

catCatalog.Tables.Append tblTemp
------------------------
When I call the append method to the tables collection I get a "type
is invalid" error message. ??? What am I missing here? any
suggestions?? I can probably do this with DAO but I dont want give
up.
thanks

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.