Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Retaining format in text copied from Word to Access

Status
Not open for further replies.

Maturi

IS-IT--Management
Oct 9, 2003
81
GB
Hi,

I'm using a MS Word document to capture comments. It is a simple Word table with headings - "Ref" and "Comments.

I want to Paste Append this table into Access. This I can do - but this process loses any formatting in the original Word table. I just want to retain simple formatting like Return, Tabs, Bold.

Is there a way to specifiy this in the Paste Append or is there another solution?

I've thought about replacing the Paragraph mark in Word with a unique sequence (eg "zzz") and then doing a Find/Replace in Access on "zzz" to "Return". But I don't know how to insert special characters in Access.

Help appreciated
 
Maturi,

Access is not a word-processor. You can store/display text
with carriage returns in it. For bold text, you could do
some tricks with VBA, or queries, but in the long run its
probably not worth it.

As for the Tabs, Access does not have a means of dealing
with this (as far as I know). For one of my apps I had to
go to a fixed-pitch font and substitute spaces for the
tabs.

You might investigate some other controls ActiveX or
RTF to get the desired effect.

Good luck,
Wayne
 
Wayne

Thanks for this. I agree Access is not a WP - and let's put the Tabs and Bold issue to one side and concentrate on just the Return formatting.

You are right that in the Memo filed Access can handle Returns. But you have to manually insert it. If I have a Return in a Word text field and I copy that field to Access the Return is replaced by a space.

What I would like to do is either
- retain the Return OR
- once it is in Access, re-insert the Return by some sort of find/replace (possibly through VB?)

Any further assistance appreciated.

Regards, M

 
Hi

You could look at
Stefan Lebans has lots of (free) smart ways to work around Access limitations, including some Word/Access work arounds, not sure if he has what you want, but it is worth a try

Regards

Ken Reay
Freelance Solutions Developer
Boldon Information Systems Ltd
Website needs upgrading, but for now - UK
 
I've sorted this out now.

If you are interested...

In Word you do a search on the Paragraph mark and replace each one with a Manual Line break.

Then when you copy into Access the Manual line break is preserved.


Cheers.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top