[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Updating Sharepoint From Access

Posted on 2011-09-17
2
Medium Priority
?
447 Views
Last Modified: 2013-11-27
I have a Sharepoint list that track sales opportunities.  I linked the list to an Access 2010 database so that I could run validation checks against the data.  If my validation process finds an error I update the Sharepoint list with an error message.  A sharepoint workflow then runs to send an email message to the owner of the opportunity.  The next time the process runs if the error has been corrected I clear out the error message columns on the sharepoint list.  This is where I'm getting some very strange behavior.  The update sets three column values but in addition to those three columns all of my multiline text columns are cleared.

Has anyone seen something like this before?

Attachments:
Update query
Before/After images of data
Image of the list definition


UPDATE sales_opportunity_sp 
SET 
sales_opportunity_sp.[Message] = Null, 
sales_opportunity_sp.[Message Sent] = -1, 
sales_opportunity_sp.[Message Sent Count] = 0
WHERE sales_opportunity_sp.ID = 857;

Open in new window

list-definition.jpg
data-before-and-after.jpg
0
Comment
Question by:mre001
2 Comments
 
LVL 9

Accepted Solution

by:
SharePointGirl earned 2000 total points
ID: 36556043
This is an unsupported method of updating a SharePoint list. You can retrieve data this way but updating is not supported. SharePoint has data types person, choice that have no equivalent in access.

You should update the SharePoint list through the SharePoint access model.
0
 

Author Closing Comment

by:mre001
ID: 36583198
Not happy with the answer but neverless I have an answer.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Windows Explorer lets you open cabinet (cab) files like any other folder. In VBA you can easily handle normal files and folders, but opening and indeed creating cabinet files takes a lot more - and that's you'll find here.
In a use case, a user needs to close an opened report by simply pressing the Escape (Esc) key. This can be done by adding macro code in Report_KeyPress or Report_KeyDown event.
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Suggested Courses

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question