This works for importing an entire table from the ODBC database into Access:
DoCmd.TransferDatabase acImport, "ODBC Database", "ODBC;DSN=SuperBase", acTable, "BDONAMES", "BDONAMES", False
But there is a table in the ODBC database with 517 fields and I only want to import, let’s say, 5 or 6 columns/fields. What is the best way to do this using VBA? I googled for a couple days and read 10 or 15 threads on stackoverflow but I haven’t seen this specific question answered. Thanks in advance
Try something on the lines of: