MichaelRed
Programmer
For obscure (and unworthy) reasons, I want/need to change the name of one of the tables in an Ms. Access data base, depending on a specific process.
I have two different tables in the database One of them is a linked Pervasive/BTRieve file which is used in conjunction w/ a companion program which I have NO influence on (much less control of). The other is a native Ms. Access table which is a quasi clone of the BTRieve table (discarding elements which My Program doesn't ever use). It (the Ms. Access quasi clone) is also lined to the main Ms. Access database.
When running with the companion program, I need to "ReName" the BTRieve table as "SKU". When running in standalone mode, I need to Rename the Ms. Access table as "SKU".
Using info from the MSysObjects (hidden) table, I can easily see which file is currently named "SKU", and re-set it's name to some appropiate value, and then rename the desired one th "SKU".
Unfortunatley, this is all done in an Ms. Access module, using the DoCmd.Rename ... function. The 'real' application is written in VB6, so use of the Ms. Access module is not quite 'legal' as far as I know.
If anyone knows how to accomplish this functionally from within VB, I would appreciate the feedback.
MichaelRed
mred@duvallgroup.com
There is never time to do it right but there is always time to do it over
I have two different tables in the database One of them is a linked Pervasive/BTRieve file which is used in conjunction w/ a companion program which I have NO influence on (much less control of). The other is a native Ms. Access table which is a quasi clone of the BTRieve table (discarding elements which My Program doesn't ever use). It (the Ms. Access quasi clone) is also lined to the main Ms. Access database.
When running with the companion program, I need to "ReName" the BTRieve table as "SKU". When running in standalone mode, I need to Rename the Ms. Access table as "SKU".
Using info from the MSysObjects (hidden) table, I can easily see which file is currently named "SKU", and re-set it's name to some appropiate value, and then rename the desired one th "SKU".
Unfortunatley, this is all done in an Ms. Access module, using the DoCmd.Rename ... function. The 'real' application is written in VB6, so use of the Ms. Access module is not quite 'legal' as far as I know.
If anyone knows how to accomplish this functionally from within VB, I would appreciate the feedback.
MichaelRed
mred@duvallgroup.com
There is never time to do it right but there is always time to do it over