Solved

Auto-insert text to memo field

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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

In the previous article, Using a Critera Form to Filter Records (http://www.experts-exchange.com/A_6069.html), the form was basically a data container storing user input, which queries and other database objects could read. The form had to remain op…
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…
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…
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

786 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