Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Change Default Value In Subform

Status
Not open for further replies.

vix666

IS-IT--Management
Jul 17, 2003
63
AU
I want to be able to change the default value in a subform by using code. This subform is used as a template and when the user a clicks on a button its recordsource changes, therefore i cannot just set one default on the subform control, i need to dynamically do it depending on which the user selects.
My code is shown below

Me.subfrm_area.Form.txt_area.DefaultValue = "dist_plan_adv"

Any help would be much appreciated

Thanks in advance

Vicky
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top