Solved

Auto-insert text to memo field

Posted on 2004-08-02
1
233 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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

The first two articles in this short series — Using a Criteria Form to Filter Records (http://www.experts-exchange.com/A_6069.html) and Building a Custom Filter (http://www.experts-exchange.com/A_6070.html) — discuss in some detail how a form can be…
In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

747 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

12 Experts available now in Live!

Get 1:1 Help Now