If you use DAO or ADO to create a table is that table in the Access mdb format? <p>Tom Gahagan<br><a href=mailto:edrest@alltel.net>edrest@alltel.net</a><br><a href= > </a><br>REST<br>
<br>
Your my reason for reason.... Carlos Santana
When you say in an mdb format, that is not quite correct.<br><br>A table is an object within an .mdb file.<br>When you create a table in code, it is saved into whatever .mdb file you create it in.<br>Access is a "Self-Contained" application in that all the objects (tables, queries, forms, etc) "live" or reside in one (.mdb) file.<br>VB however, is different whereas the objects are saved as their own files (.frm (forms), .bas (modules))<br><br>Hope this helps <p>Jim Lunde<br><a href=mailto:compugeeks@hotmail.com>compugeeks@hotmail.com</a><br><a href=
Thanks Jimmy....<br><br>I understand the differences and just did not word my quesiton very well. <p>Tom Gahagan<br><a href=mailto:edrest@alltel.net>edrest@alltel.net</a><br><a href= > </a><br>REST<br>
<br>
Your my reason for reason.... Carlos Santana
Can you post an ADO example of creating a new table ( "NewTable" with two fields( "Fld1" and "Fld2" in an existing jet database ("SomeDatabase". I have not been able to find any references with samples of how to do this in ADO.
Thanks, Billg
dim cat as new adox catalog
dim tbl as new adox.table
cat.activeconnection= "provider=Microsoft.jet.oledb.4.0;"data source = .\somedatabase.mdb"
with tbl
.name = "newtable"
.columns.append "fld1",adinteger
.columns.append "fld2",advarwchar
end with
cat.tables.append tbl
set cat = nothing
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.