Set default value for unbound text box

G

Guest

How do I set the default value for an unbound text box in VB code? Thanks in
advance. Working in Access 97.
 
J

John Nurick

You set it like any other property, e.g.

Me.txtUnbound.DefaultValue = """Hello World"""

About the only place where it makes sense to set the default value of an
unbound control is in the form's Load or Open event procedure. So you
might as well just set the Value instead.
 

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