×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Can you add comments to an append-only field in a Sharepoint list using Access2010?

Can you add comments to an append-only field in a Sharepoint list using Access2010?

Can you add comments to an append-only field in a Sharepoint list using Access2010?

(OP)

I can use the following connection string to write to all fields but not the field [Actions Taken] field that is Append Only with Versioning turned on:

CODE -->

Dim cn As ADODB.Connection
Dim rs As ADODB.Recordset
Set cn = Application.CurrentProject.Connection
Set rs = New ADODB.Recordset
Dim strRS As String
strRS = "SELECT qryJD_SRs.* FROM qryJD_SRs WHERE qryJD_SRs.ID=" & Me.ID

rs.Open strRS, cn, adOpenKeyset, adLockOptimistic 

This line of code works to write data to a field:

CODE -->

rs.Fields("Details").Value = "Test Details Field" 

This line of code does not work:

CODE -->

rs.Fields("Actions Taken").Value = "Test Actions Taken Field" 

Both the [Details] and the [Actions Taken] fields are Memo and Rich Text. The [Actions Taken] field is Append Only = Yes

If I use DAO the following will write data to a field:

CODE -->

Private Sub addNewAction_Click()
Dim rs As DAO.Recordset
Dim strSQL As String
strSQL = "SELECT * FROM [Service Requests] WHERE [Service Requests].ID = " & Me.ID
Set rs = DBEngine(0)(0).OpenRecordset(strSQL, dbOpenDynaset)

With rs
.Edit
![Details] = "Monday test"
.Update
End With

rs.Close
Set rs = Nothing
End Sub 

Unfortunately, this DAO below will NOT write data to the Append Only field:

CODE -->

Private Sub addNewAction_Click()
Dim rs As DAO.Recordset
Dim strSQL As String
strSQL = "SELECT * FROM [Service Requests] WHERE [Service Requests].ID = " & Me.ID
Set rs = DBEngine(0)(0).OpenRecordset(strSQL, dbOpenDynaset)

With rs
.Edit
![Actions Taken] = "Monday test"
.Update
End With

rs.Close
Set rs = Nothing
End Sub 

Any suggestions?...JD

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close