Set default value for unbound text box

S

SHIPP

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