richtextbox can't change FileName using VB

S

Sheryl

I have a form containing a Richtextbox control "Doc_Box". This form is popped
up using a button "Help" located on various parent forms. I want to reset
its contents depending on which form does the pop up, in the button's Click
procedure before invoking DoCmd.OpenForm. I've tried e.g.
Form_Help.Doc_Box.FileName = "c:\myPath\whatever.rtf", but it only works
sometimes. For example, the property might change to the correct name, but
still display its PREVIOUS rtf file. After the form is opened, it FileName
property might also have reverted to its PREVIOUS value. Any insights?
 
N

Nikos Yannacopoulos

Sheryl,

I haven't tried this, but how about assigning no file or a blank file in
the form's design, and then assigning the proper help file after you
open the form each time?

HTH,
Nikos
 

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