473,395 Members | 1,915 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

DISPLAY HTML CODE on FORM as per WEBSITE

I have data in a memo field that has already been converted to HTML. However in my Access form i would like the user to toggle between seeing the HTML to displaying it as per what they will see when it is pushed through to the internet.
Is there anyway to do this using Access 2003
Jun 20 '07 #1
4 15450
Rabbit
12,516 Expert Mod 8TB
I have data in a memo field that has already been converted to HTML. However in my Access form i would like the user to toggle between seeing the HTML to displaying it as per what they will see when it is pushed through to the internet.
Is there anyway to do this using Access 2003
This is the first time I've heard of this. How did you convert it to HTML and display it as HTML?
Jun 20 '07 #2
This is the first time I've heard of this. How did you convert it to HTML and display it as HTML?
Sorry for the delay on my reply.
I Import the text from a text file and then used VBA code to put in HTML codes.
All I am needing to do is once these codes are inserted to allow the user to view the text as it will be displayed on website in Access.
I am sure i am making this sound more difficult than it is.
Example.
my field is called blurb it is of type MEMO. In blurb the data is
blurb
The Millionaire and his Daughter<P> Amelia James<P> The millionaire and his beautiful baby!<P> After her parents died, Louisa raised her baby alone sacrificing everything including her relationship with men. <P> <P>

I would like my memo field to not show the <P> but actually put in the new paragraphs.
Thank you for reading my jumbled message
Jun 26 '07 #3
FishVal
2,653 Expert 2GB
Sorry for the delay on my reply.
I Import the text from a text file and then used VBA code to put in HTML codes.
All I am needing to do is once these codes are inserted to allow the user to view the text as it will be displayed on website in Access.
I am sure i am making this sound more difficult than it is.
Example.
my field is called blurb it is of type MEMO. In blurb the data is
blurb
The Millionaire and his Daughter<P> Amelia James<P> The millionaire and his beautiful baby!<P> After her parents died, Louisa raised her baby alone sacrificing everything including her relationship with men. <P> <P>

I would like my memo field to not show the <P> but actually put in the new paragraphs.
Thank you for reading my jumbled message
Hi!

What about using WebBrowser control on the form.
See this http://www.databasedev.co.uk/access_...ge_viewer.html

I'm not very experienced in WebBrowser control programming (actually not at all as well as with HTML itself :)) , so I may loose something but the following code allow to change HTML text in the control with document opened. At least with your example it works fine.

Expand|Select|Wrap|Line Numbers
  1. Me.ctlWebBrowser.Object.Document.Body.InnerHTML = strHTML
  2.  
Jun 30 '07 #4
ADezii
8,834 Expert 8TB
I have data in a memo field that has already been converted to HTML. However in my Access form i would like the user to toggle between seeing the HTML to displaying it as per what they will see when it is pushed through to the internet.
Is there anyway to do this using Access 2003
Why not store the HTML File (*.htm), in an OLE Object Field as opposed to Text in a Memo Field, in your Table. It can be Linked/Embedded, displayed in a Bound/Unbound Object Frame, etc. Double Clicking on the HTML Field will launch the Server Application for *.htm Files which will probably be Internet Explorer. Within IE, you could also view the complete Source HTML. I do not know if this could actually be implemented in your case, but it is just a suggestion.
Jul 1 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: rikesh | last post by:
Hi I'm sure this is a very trivial problem! I have a combo bound to a recordset. I was wondering how I can show the value on the page, what the user has selected? The code that I'm using is...
1
by: Bart Van der Donck | last post by:
Jomo (jomo@dynamicdeveloper.co.uk) wrote: > How do I generate a request from an HTML search form > (or button/hyperlink) to search/query an XML data file, > using CGI scripts, and have the...
10
by: DettCom | last post by:
Hello, I would like to be able to display or hide fields based on whether a specific Yes/No radio button is selected. This is in conjunction with a posting a just made here in the same group...
19
by: dmiller23462 | last post by:
Hi guys....I have absolutely NO IDEA what I'm doing with Javascript but my end result is I need two text boxes to stay hidden until a particular option is selected....I've cobbled together the...
1
by: Patrick | last post by:
Problem I have an ASPX file, with a table of 3 columns, 2 rows with a usercontrol in the middle column (in the code snippet stated below, although in reality, the left hand column would also...
18
by: fishwick | last post by:
I haven't really done any css in quite a while, and am banging my head against the wall trying get the rudimentary layout together of a church website home page to display correctly - I don't want...
3
by: kansaschuck | last post by:
Ok... Let me start over since I had miss labeled the other question and it ended up in phpland and I failed to follow the posting rules. Sorry, here's a rework. (hey... I just saw the html code...
5
by: =?Utf-8?B?U2FpIFZhamph?= | last post by:
Hi I am working on a website and suddenly this afternoon i cannot view anything on my pages. No html is being rendered to the pages (no errors are shown while compiling the website). I have...
1
by: Bobc003 | last post by:
Hi, I'd like to put a double drop-down menu on my webpage and instead of a redirection to a new webpage, I'd like to display the result in a new section. I'm kind of stuck and I only have a triple...
3
by: DigitalWallfare | last post by:
Hi all, This is my first post here, but i've lurked for a while. I'm working on a website but have come across a major stumbling block in the code: I've managed to structure the search query...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.