Using Form control to set Code property

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
 
P

PC Datasheet

"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.
 

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