Solved

Clearing history in Text Box

Posted on 2013-11-03
1
258 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
1 Comment
 
LVL 119

Accepted Solution

by:
Rey Obrero earned 500 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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

Introduction This Article briefly covers methods of calculating the NPV and IRR variants in Excel as well as the limitations in calculating and interpreting IRR results. Paraphrasing Richard Shockley, author of my favourite finance reference tex…
I originally created this report in Crystal Reports 2008 where there is an option to underlay sections. I initially came across the problem in Access Reports where I was unable to run my border lines down through the entire page as I was using the P…
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.

911 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now