Solved

Clearing history in Text Box

Posted on 2013-11-03
1
283 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 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

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

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

It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
This article describes two methods for creating a combo box that can be used to add new items to the row source -- one for simple lookup tables, and one for a more complex row source where the new item needs data for several fields.
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

740 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