Solved

Auto-insert text to memo field

Posted on 2004-08-02
1
266 Views
Last Modified: 2008-03-17
I *think* what I need is an update append query! - If a user clicks on a command button, I'd like a field in my table (called memotext) to be updated (i.e. be appended to) with the date, time, NT username and a string like "Customer report was printed".

Lap
0
Comment
Question by:Lapchien
1 Comment
 
LVL 32

Accepted Solution

by:
jadedata earned 250 total points
ID: 11694281
I would agree with you..

  UPDATE TableName
  Set [MemoField] = ([MemoField] & vbcrlf & UserName & " - " & DateTime & " - Customer report was printed")
  WHERE ([PrimaryKeyField] = sPKVariableToIDThisRecord)

In addition you are making the edit in a manner consistant with how M$ has recommended,....One swipe edit.

Piece meal or typing edits to memo fields are more prone to corrupting the content of the memo field during edit.

-j-

0

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

Overview: This article:       (a) explains one principle method to cross-reference invoice items in Quickbooks®       (b) explores the reasons one might need to cross-reference invoice items       (c) provides a sample process for creating a M…
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.

735 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