Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Clearing history in Text Box

Posted on 2013-11-03
1
Medium Priority
?
298 Views
Last Modified: 2013-11-03
In Access I have a text field called "txtComments" that retains the history using the following formula:

=ColumnHistory([RecordSource],"Comments","[ID]=" & Nz([ID],0))

I would like to create a simple button on the Form that allows me to actually clear all the data captured in the history, I am not sure how the code would look like
0
Comment
Question by:joeserrone
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 120

Accepted Solution

by:
Rey Obrero (Capricorn1) earned 2000 total points
ID: 39619919
the columnhistory is created for a memo field that have its AppendOnly property set to  Yes

microsoft did not provide a way to delete the history (AppendOnly=yes)


to delete the history you need to set the AppendOnly property to No

if you want to have a copy of the history, create another memo field and run an update query to copy the history to the new memo field, then delete the original Memo field with the history

save the table

to have a clean memo field history, add a new Memo field and set the AppendOnly to Yes
Save the table
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

If you need a simple but flexible process for maintaining an audit trail of who created, edited, or deleted data from a table, or multiple tables, and you can do all of your work from within a form, this simple Audit Log will work for you.
Code that checks the QuickBooks schema table for non-updateable fields and then disables those controls on a form so users don't try to update them.
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

722 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