Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Modules / DAO / VBA / March 2005

Tip: Looking for answers? Try searching our database.

memo

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Christian Schartner - 10 Mar 2005 13:49 GMT
Hi NG,

my second question:

I need to add some data at the end of a memo-field by vba.

Memo1 = Memo1 & "xxxxxxxxxxxxxxx" does not work!

Thank You
Christian Schartner
Salzburg
Todd B. - 10 Mar 2005 14:43 GMT
I am supposing you're trying to update a field in a table. If that is wrong,
I'm sorry for the following, as it will not apply to you.

Use the following code to update a memo field in a table by appending a text
string to the end of it. (Add a WHERE clause to ensure you change only the
record you want):

CurrentDb.Execute "UPDATE tblMemo SET tblMemo.fldMemo = fldMemo & '" & [add
your string here] & "'"
JaRa - 10 Mar 2005 14:45 GMT
  rs("MemoField")=nz(rs("MemoField")) & "xxxxxx"
  rs.Update

or
dim strTemp as string

  strTemp=nz(rs("MemoField"))
  strTemp=strTemp & "xxxxxx"
  rs("MemoField")=strTemp
  rs.Update

One of these should be a help to you.

- Raoul

> Hi NG,
>
[quoted text clipped - 7 lines]
> Christian Schartner
> Salzburg
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.