Changing ControlSource

R

Rick

I have a form with a text box (txtInputBy) whose control
source I set with:
msg = InputBox("Input by?")
msg = "=" & "'" & msg & "'"
Me!txtInputBy.ControlSource = msg
Another bound control uses this value to store with other
data. This allows me to change the Input by data in form
view. However this control source is not saved when the
form is saved and closed. If I do the exact same thing in
the porperty sheet it is saved. I need the Input by value
to remain the same until I want to change it. Do I need to
use another method to do this or am I just doing something
wrong? I don't have to have the code switch the form to
design view, do I?

Thanks.

Rick
 

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