Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old September 20th, 2008, 10:56 AM
Registered User
 
Join Date: Jun 2008
Location: , , .
Posts: 6
Thanks: 0
Thanked 1 Time in 1 Post
Default Set memo field text format via VBA

I would like to set the text format property of a table field that is dbMemo. Using the GUI I can set "Text Format" to "Rich Text". How do I do this using VBA?

I have no problems creating a dbMemo field.

        Set f = .CreateField("Note_RtMemo", dbMemo)
        ' this fails . no such property
        f.Properties("TextFormat") = "Rich Text"
        ' this fails . no such property
        f.Properties("Text Format") = "Rich Text"
        ' this has compile error
        f.TextFormat
        .Fields.Append f


Reply With Quote
  #2 (permalink)  
Old September 25th, 2008, 06:54 AM
Friend of Wrox
Points: 4,007, Level: 26
Points: 4,007, Level: 26 Points: 4,007, Level: 26 Points: 4,007, Level: 26
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Lansing, Michigan, USA.
Posts: 1,151
Thanks: 2
Thanked 14 Times in 14 Posts
Send a message via ICQ to SerranoG Send a message via AIM to SerranoG
Default

Welcome to P2P. Am I missing something? I don't know about Access 2007 because I don't have it yet, but Access 2003 and before don't allow rich text formatting in memo fields at all. Which version are you using?


Greg Serrano
Michigan Dept. of Environmental Quality, Air Quality Division
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Format : Memo scandalous Access 2 February 22nd, 2007 10:31 AM
Set table's primary key field using DAO VBA Versi Ray Pinnegar Access 2 May 31st, 2005 08:08 AM
Inserting text from datagrid into Memo field in c# kgriffin Classic ASP Databases 0 May 4th, 2005 10:17 AM
Word VBA - Text Form Field dkr72 Excel VBA 1 December 22nd, 2004 11:09 AM
Field format from Text to Memo sassenach Classic ASP Databases 0 July 24th, 2003 06:19 AM



All times are GMT -4. The time now is 07:47 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.