Is it possible to use word equation editor and then export it to access. For example in the fabulous test taker data base My questions and answers are all based on math And I would like to present the data as I would write it not how access converts it. Thank You Tom Gardega
Microsoft Word has a good equation editor. the problem is that it does not keep the format when placed in ACCESS. I tried Rich text but it did not work either.
regards Tom Gardega
By placed in Access I mean copied from word and pasted into access using text, rich text, Or HTML it does not make a difference the format from equation editor does not transfer to Access. I believe this is something for Richard to explore and perhaps make a video. For now I am just accepting it and moving on.
Regards Tom Gardega
A picture would help towards suggestions to a solution.
Kevin Yip
@Reply 3 years ago
Word lets you convert equations into "linear text" format, which you can save to Access. See picture below. The key is to run the .Linearize method on a equation, then save the linear text into Access. You may see funny characters in the Access table, as shown below. But the Access data can be converted back to a Word equation using the .BuildUp method as shown.
Kevin is there a COM object or AddIn you can use to display it in an Access Form?
Haven't had time to look into it yet
Kevin Yip
@Reply 3 years ago
I would consider converting the equation into a picture, but even that could be (very) tricky to automate. If there are not too many equations, manually convert them to pictures (select equation, copy, paste special -> image; select image, save as picture file). Then show the pictures on an Access form.
Bit of a display issue - not sure what version of Edge the control uses.
Left: Edge | Right: Access Form
Kevin Yip
@Reply 3 years ago
You can also save the Word document as an HTML file, and it will retain all the equations, albeit as images. The original goal of this thread is exporting equations back and forth between Access and Word, so I'm not sure learning a whole new markup would help. But it's an interesting markup language that may be fun to learn. But if I want to make a webpage with equations, I will mostly like do it in Word, then save it as an HTML file.
Not sure if it was between, unless I mis-read the question.
You could also use an OLE object and embedded a Word Document which has the equation in.
Kevin Yip
@Reply 3 years ago
The original poster said he wanted to copy equations "from Word and paste into Access using text, rich text, Or HTML..." I took that to mean text in Access tables, because that's what Access is used for. And the only way to restore those equations is to convert them back in Word. So that's why I was thinking "back and forth" conversion between Access and Word. Regarding OLE embedding, the only way to manipulate individual equations is to use Word VBA and the OMaths object.
I read it as wanting to display an equation in Access as part of a test question.
With Word having an equation editor it was created in there, then copied over to Access.
Problem being Access can't interpret it and just shows plain text? (Hence I was asking for a screenshot to see what was going on)
Sorry, only students may add comments.
Click here for more
information on how you can set up an account.
If you are a Visitor, go ahead and post your reply as a
new comment, and we'll move it here for you
once it's approved. Be sure to use the same name and email address.
This thread is now CLOSED. If you wish to comment, start a NEW discussion in
Access Developer 9.