Hello-
I was wondering if anyone knew a way to use VB to change field names at the table level. I also require code to add fields to a table and rearrange order plus change the field length property. So far it seems that only changing the field lenght property is possible. Does anyone have a work around?
Specifically I have two tables with the similar data types BUT the tables do not have the same amount of fields nor are the fields named the same. I need to incorporate these two different tables into one main table. See the structure below:
Invoices Table
---------------
Invoicenum = Invoice number
invdate = Invoice date
Name = Name
Addr_1 = Address line 1
City = city, st & zip
*also contains several other fields both before and after this data that I don't need
Transfers Table
----------------
Invoicenum = Invoice number (with prefix added like -001)
receipt = Invoice date data in this table
B_Name = Name data in this table
B_Addr = Address data in this table
B_City = city, st & zip data in this table
In addition to moving everything over from the Transfers table I'll need to strip the prefix off of Invoicenum in Transfers table. So far this is the only task I think I know how to do. I might be going about this all wrong..I'm thinking maybe I should develop some code that will walk the record set and add records rather than going this route.
If anyone can help one way or the other I would greatly appreciate it!!!!
I was wondering if anyone knew a way to use VB to change field names at the table level. I also require code to add fields to a table and rearrange order plus change the field length property. So far it seems that only changing the field lenght property is possible. Does anyone have a work around?
Specifically I have two tables with the similar data types BUT the tables do not have the same amount of fields nor are the fields named the same. I need to incorporate these two different tables into one main table. See the structure below:
Invoices Table
---------------
Invoicenum = Invoice number
invdate = Invoice date
Name = Name
Addr_1 = Address line 1
City = city, st & zip
*also contains several other fields both before and after this data that I don't need
Transfers Table
----------------
Invoicenum = Invoice number (with prefix added like -001)
receipt = Invoice date data in this table
B_Name = Name data in this table
B_Addr = Address data in this table
B_City = city, st & zip data in this table
In addition to moving everything over from the Transfers table I'll need to strip the prefix off of Invoicenum in Transfers table. So far this is the only task I think I know how to do. I might be going about this all wrong..I'm thinking maybe I should develop some code that will walk the record set and add records rather than going this route.
If anyone can help one way or the other I would greatly appreciate it!!!!