Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Insert query from Access 2007 to a Sharepoint 2007 list

Status
Not open for further replies.

Caessa

Programmer
Aug 17, 2011
1
DE
Hi all,

I try to export entries from an Access 2007 database to a Sharepoint 2007 list. In order to do so, I created a connection from Access to my Sharepoint lists.
Unfortunately I have issues with two things:

1. issue: I have two lookup fields in the Sharepoint list, where you can choose more than one option (multiple lookup). I don't know how I have to build my query for this. I tried these two things:

INSERT INTO [LISTNAME](Kategorie) VALUES(31)
-> I get the error "An INSERT INTO query cannot contain a multi-valued field"

INSERT INTO [LISTNAME](Kategorie.Value) VALUES(31)
-> Access doesn't respond anymore an I have to close it

Lookup fields, that can contain only one value, are workin fine.


2. issue: One column in my Access table has html content. I want to insert this into a Sharepoint column type "Multiple lines of text" with the additional colum setting "enhanced rich text". I don't get any error with my insert query, but the Sharepoint column is empty.

INSERT INTO [LISTNAME](Title, Inhalt) VALUES('" & Title.Value & "', '" & Content.Value & "')

What do I wrong?


I hope someone can help me with this. Thank you so much in advance!

Regards
Nicole
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top