K
kelly d via AccessMonster.com
my error is caused when I try to use the sample code on MSDN for RichTextBox
controls to add an image to my RichTextBox control. their sample goes like
this.
Private Sub cmdAddObject_Click()
' Add the butterfly bitmap to the control.
RichTextBox1.OLEObjects.Add , , , "bfly.gif"
End Sub
my code looks like this:
frm!CommonDialog.ShowOpen
f = frm!CommonDialog.Filename
frm!LetterWindow.OLEObjects.Add , , , f
(where LetterWindow is the name of my RichTextBox)
if possible to add images to a RichTextBox control in Access in this manner
or is that only a VB thing?
if it is possible, then does anybody know why I might be getting this error?
thanks
controls to add an image to my RichTextBox control. their sample goes like
this.
Private Sub cmdAddObject_Click()
' Add the butterfly bitmap to the control.
RichTextBox1.OLEObjects.Add , , , "bfly.gif"
End Sub
my code looks like this:
frm!CommonDialog.ShowOpen
f = frm!CommonDialog.Filename
frm!LetterWindow.OLEObjects.Add , , , f
(where LetterWindow is the name of my RichTextBox)
if possible to add images to a RichTextBox control in Access in this manner
or is that only a VB thing?
if it is possible, then does anybody know why I might be getting this error?
thanks