Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Clearing history in Text Box

Posted on 2013-11-03
1
Medium Priority
?
305 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 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

Microsoft Access has a limit of 255 columns in a single table; SQL Server allows tables with over 255 columns, but reading that data is not necessarily simple.  The final solution for this task involved creating a custom text parser and then reading…
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.
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

885 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