简体   繁体   English

MS ACCESS:插入到共享点列表或本地表中,无法在备注,OLE或超链接对象上加入

[英]MS ACCESS: Insert into sharepoint list or local table, cannot join on memo, OLE or hyperlink object

I have the error 'cannot join on memo, OLE or hyperlink object' using MS Access 2007-2013 format in a 2013 client. 我在2013年客户端中使用MS Access 2007-2013格式出现错误“无法在备忘录,OLE或超链接对象上加入”。

I want to insert into a sharepoint list data excluding duplicates using an inner join. 我想使用内部联接将不包含重复项的数据插入到共享点列表中。 I have tried changing data types on the sharepoint list and local table with no success. 我尝试更改共享点列表和本地表上的数据类型,但没有成功。

Only one field is causing the error and contains info like this "adaptor for 98735 Line positioner to a 2ΓÇ¥ Lisrjoin actuator" 仅一个字段引起错误,并且包含诸如“用于2735 ¥ Lisrjoin执行器的98735线路定位器的适配器”之类的信息。

It seems like the problem is within the inner join command as it errors out when using both append and insert statements. 似乎问题出在内部连接命令之内,因为同时使用append和insert语句时会出错。

Here is a sample SQL statement simplified for clarity. 这是为清楚起见而简化的示例SQL语句。

INSERT INTO assigned_stock 
            (description) 
SELECT import_assigned_stock.description 
FROM   import_assigned_stock 
       LEFT JOIN assigned_stock 
              ON import_assigned_stock.description = assigned_stock.description 
WHERE  (( ( [assigned_stock].description ) IS NULL )); 

Is there anyway I can get around this? 无论如何,我能解决这个问题吗?

I wasn't able to do a left join due to the Memo error or a type conversion but this SQL will insert from a .CSV file into a SharePoint list without duplicates. 由于Memo错误或类型转换,我无法进行左联接,但是此SQL将从.CSV文件插入到SharePoint列表中,而没有重复项。

INSERT INTO Stock ( Description, Supplier, Qty, Unit_Cost )
SELECT Stockcsv.[(Cost) Description], Stockcsv.[(Cost) Supplier], Stockcsv.[(Cost) Quantity returned to Inventory], Stockcsv.[(Cost) Cost]
FROM [Text;FMT=Delimited;HDR=YES;CharacterSet=437); DATABASE=D:\Warehouse].Stock.csv AS Stockcsv
WHERE NOT EXISTS (SELECT * FROM Stock where Stock.Supplier = Stockcsv.[(Cost) Supplier] AND Stock.Description = Stockcsv.[(Cost) Description] AND Stock.Unit_Cost = Stockcsv.[(Cost) Cost] AND Stock.Qty = Stockcsv.[(Cost) Quantity returned to Inventory]);

The syntax is: 语法为:

INSERT INTO destable ( field1,field2)
SELECT filestempname.field1, filestempname.field2
FROM [Text;FMT=Delimited;HDR=YES;CharacterSet=437); DATABASE=C:\your\file\path].filename.csv AS filestempname
WHERE NOT EXISTS (SELECT * FROM destable WHERE destable.field1 = filestempname.field1 AND destable.field2 = filestempname.field2);

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM