Results 1 to 2 of 2
  1. #1
    3 Star Lounger
    Join Date
    Dec 2006
    Posts
    250
    Thanks
    0
    Thanked 0 Times in 0 Posts

    linking on field to another in a form (2003)

    Hello,

    I have a form and I want the user to select the contract number. Once the contract number is selected, I want another field that gets populated with the contractor's name. Both are in a query call "QrycontractNameandNumber" How can I do this? Both fields are available on the form.

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: linking on field to another in a form (2003)

    I'll assume that the contract number is the first field in the query and the contractor name the second field.

    Put a combo box on the form with the following properties:
    Column Count: 2
    Column Widths: 0";2"
    Control Source: If the combo box is intended to set the contract number for the current record, set Control Source to the name of the contract number field, otherwise leave it blank.
    Row Source Type: Table/Query
    Row Source: QrycontractNameandNumber
    Name: cboContractNumber.

    Put a text box on the form with the following Control Source:

    =[cboContractNumber].[Column](1)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •