|
Question : Exporting a table
|
|
Hi experts ! I currently export 2 tables to another database that I create on the fly. Now, how do I export certain columns only ? (not all colunms) of both tables ??? Here is my code (I'm using Access 2000) : ============================================================================ Set db = CreateDatabase(filename, dbLangGeneral, dbVersion40) db.Close DoCmd.TransferDatabase acExport, "Microsoft Access", filename, acTable, "SALES_PRICES_LINES-CAN", "SALES_PRICE_LINES" DoCmd.TransferDatabase acExport, "Microsoft Access", filename, acTable, "SALES_PRICES-CAN", "SALES_PRICES" ============================================================================ Thanks
|
|
Answer : Exporting a table
|
|
Hi all
Last I remember, any punctuation in an object name other than an underscore requires square brackets when you refer to it in VBA or SQL, which explains why SALES_PRICES_LINES works by itself, but SALES_PRICES_LINES-CAN does not.
You'll find in pretty much every Access Naming Convention white paper to avoid punctuation.
Here's one of the better ones... http://www.mvps.org/access/general/gen0012.htm
-Jim
|
|
|
|