Query crashes MS Access

前端 未结 4 1417
你的背包
你的背包 2021-01-22 02:39

THE TASK: I am in the process of migrating a DB from MS Access to Maximizer. In order to do this I must take 64 tables in MS ACCESS and merge them into one. The

4条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-22 03:25

    Since you want to merge 64 tables, may we assume those tables all have the same structure?

    If so, create a new empty table with matching structure, then append the rows from each of those 64 tables into the new merge master table. Then export the merge master table as a single CSV file.

    The merge operation should not have to be a single complex query.

    INSERT INTO tblMergeMaster(
        some_field,
        another_field,
        yet_another)
    SELECT
        some_field,
        another_field,
        yet_another
    FROM
        tbl_1_of_64;
    

    You can build the INSERT statement 64 times with VBA code, with a different FROM table each time. And execute each statement with CurrentDb.Execute

提交回复
热议问题