Excel oledb connection to Ms-Access database lock access db

后端 未结 3 568
温柔的废话
温柔的废话 2021-01-12 18:17

I have an excel spreadsheet that connects to MS-Access 2003 database using ole db connection. When I refresh the data in spreadsheet and open my ms-access database it says d

3条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-12 19:19

    Excel's background refresh option is enabled. Disable it, or use the query studio to design the query as DBQ.

    
      
        
        DBQ=;DefaultDir=;
        Driver={Microsoft Access Driver (*.mdb, *.accdb)};DriverId=25;
        FIL=MS Access;MaxBufferSize=2048;MaxScanRows=8;PageTimeout=5;
        ReadOnly=1;SafeTransactions=0;Threads=3;UID=admin;UserCommitSync=Yes;
        
      SELECT ... FROM ... WHERE ... 
      
    
    

提交回复
热议问题