textbox proprty not available

L

laptop

in the documentation, the textbox control should have a property called
'boundvalue'. although i'm not sure yet how to use it, i get a error meaasge
saying invalid property.

what i'm trying to do is set the value of the textbox so it will load in the
text from an external word document.

thanks again
mike g

hoping to get good enough to help others here one day.
 
J

Jezebel

You're getting several things mixed up together here. DataBinding is a
technique available in VB (not in VBA) for linking forms and form controls
to a datasource. The idea is that you create a connection between the form
and a recordset; the controls on the form -- such as textboxes -- can then
be bound to specific fields to automatically display or update data from the
current recordset row.

Without going into detail, the BoundValue property relates to how you set up
that binding connection.


You can set up an OLE field to work with the content of a Word document; but
apart from that, to display text from an external document you need to write
code to open the document, extract the text, and close the document.
 
L

laptop

thanks for the explanation.
how about if i set a hyperlink-property for a frame and make it execute when
i click a button. will the frame be filled with an opened external file??
the file is not necesarily text, it's an external word document that i want
loaded into one-container within a document.

mike
 
J

Jezebel

As with your other post, I thought you were talking about a UserForm. If you
simply want to display one document inside another, use a LINK field. Use
the /a switch to make it update automatically.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top