Using Form control to set Code property

  • Thread starter Thread starter sek0910
  • Start date Start date
S

sek0910

I have an activeX control where the VB code sets the
filename to save an image to. (e.g.,
FileName="c:\test.jpg"

Is there a way to substitute the "c:\test.jpg" with the
text in a control on the form(which in turn is bound to a
field in its underlying table)?

Thanks in advance
 
"c:\test.jpg" is merely a string so any string expression or string value will
work. Use:
FileName = Me!NameOfThe Control

Where NameOfThe Control is bound to a field in the underlying table.
 
Back
Top