use input box data as default value

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

Guest

Well here I am again with another queston ( but I guess thats the way to
learn) anyway.

I know how to get an input box to open when a form loads but how can I get
the data that was entered into the input box to be the default data in one of
the fields
on my form?

Thanks in advance for any help
 
Try this in your form load event

me.MyControl.value = InputBox("There it is")

Obviously, replace "MyControl" with the name of your control.

Yanick
 
Me.SomeControl.DefaultValue = "'" & InputBox("enter default value") & "'"
 

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

Back
Top