Link to home
Start Free TrialLog in
Avatar of hintco
hintco

asked on

How to creat ms access table with memo colmun rich text property by sql code?

I want to create atable in ms access database that include memo column , and this column has  rich text property  not plain text.
i want it through sql code. Because i will use it in vb.net to create tabels automatically.
When Im creating table and make memo, it became as paln text by default not rich text.
Avatar of peter57r
peter57r
Flag of United Kingdom of Great Britain and Northern Ireland image

There is no SQL command to do this.

In DAO it can be done like.. (but I can't help you with the .net code)
.
Dim mytdf as dao.tabledef
Dim prp as DAO.Property
set mytdf = currentdb.tabledefs("tablename")

With myTDF.Fields("memofieldname")
Set prp = .CreateProperty("TextFormat", dbByte, acTextFormatHTMLRichText)  
 .Properties.Append prp
End With
ASKER CERTIFIED SOLUTION
Avatar of hintco
hintco

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Please post your solution so that others may benefit.
Avatar of hintco
hintco

ASKER

There isn't any good solution and there isn't much solutions.
I get the solution by myself