richtextbox can't change FileName using VB

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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?
 
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
 
Back
Top