Dynamically adding tables? 
Author Message
 Dynamically adding tables?

Hi,
     The problem I need to solve via  vb6.0 and access 2000.  I have two
databases.  I need to move table(s) from one data base to the other.  I only
need to move the table(s) that are not in receiving database.

I have VB code that can locate the missing tables.  My question is how do I
add a table?  I really do not want to build a sql statement to create athe
table and define all columns.

Any suggestion will be greatly appreciated.

--
Capt'n Roy

Quote:
>))))o>  Think Fish <o((((<



Tue, 13 Apr 2004 11:27:24 GMT  
 Dynamically adding tables?
Hi,

You can use ADOX library. It allows to change database
structure.

Val

Quote:
>-----Original Message-----
>Hi,
>     The problem I need to solve via  vb6.0 and access
2000.  I have two
>databases.  I need to move table(s) from one data base to
the other.  I only
>need to move the table(s) that are not in receiving
database.

>I have VB code that can locate the missing tables.  My

question is how do I
Quote:
>add a table?  I really do not want to build a sql

statement to create athe
Quote:
>table and define all columns.

>Any suggestion will be greatly appreciated.

>--
>Capt'n Roy

>>))))o>  Think Fish <o((((<

>.



Tue, 13 Apr 2004 20:51:06 GMT  
 Dynamically adding tables?

Hi, all

You can accomplish it by using Access' own SELECT... INTO syntax.
Access Help refers it as "make-table queries"
Suppose you have a table named Employees and you want to make
a backup of it. You simply write and execute an SQL as follows :

SELECT  *  INTO  EmployeesBackup  FROM  Employees

This would make a new table named EmployeesBackup which would
have same content as Employees.

Considering that you have two separate databases as source and
target, you have to use the IN clause in your SQL to specify the path
of the databases. Using the above example, your SQL statement
should look like this :

SELECT  *
       INTO  EmployeesBackup IN "c:\myapp\data\target.mdb"
    FROM  Employees  IN  " \\someserver\data\source.mdb "

Hope it helps,
Serdar Aytamaner

Quote:


> Hi,

> You can use ADOX library. It allows to change database
> structure.

> Val

>> -----Original Message-----
>> Hi,
>>     The problem I need to solve via  vb6.0 and access
>> 2000.  I have two
>> databases.  I need to move table(s) from one data base to
>> the other.  I only
>> need to move the table(s) that are not in receiving
>>database.

>> I have VB code that can locate the missing tables.  My
>> question is how do I
>> add a table?  I really do not want to build a sql
>> statement to create athe
>> table and define all columns.

>> Any suggestion will be greatly appreciated.

>> --
>> Capt'n Roy



Thu, 15 Apr 2004 00:51:12 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Help adding Table Rows dynamically Please!

2. to add row dynamically in table

3. Add new row to a table dynamically

4. Problem dynamically adding fields to tables

5. Crystal Reports: add/delete groups dynamically and starting a new page dynamically

6. Adding Events to Dynamically Added Controls

7. Checking if a record is duplicated before adding or during adding it to a table

8. Dynamically adding linefeed (return) to one field in a report

9. need something like foreach record in table - add record to another table

10. A97, Dynamically adding references

11. Dynamically adding value items to combobox

12. Dynamically adding bitmap to unbound ctl.

 

 
Powered by phpBB® Forum Software