Share via


ControlSource Property Example

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

The following example sets the ControlSource property for a text box named AddressPart to a field named City:

  Forms!Customers!AddressPart.ControlSource = "City"

The next example sets the ControlSource property for a text box named Expected to the expression =Date() + 7.

  Me!Expected.ControlSource = "=Date() + 7"