Results 1 to 2 of 2

Thread: Carrying values over in forms to queries

  1. #1
    Join Date
    Feb 2004
    Location
    Hamilton, Ontario
    Posts
    9

    Question Carrying values over in forms to queries

    I'm trying to have a form where once you enter in one field, say, name, it uses that name as a part of a where statment. For example:

    SELECT [Products bought]
    FROM [Sales Database]
    WHERE [Name] = [The name you entered in the last field of the form]

    From here that Product pull down menu lets you select the item which the customer bought. It only display the products associated with that customer you entered in the name for.

    Thanks,

    Eric Madej

  2. #2
    Join Date
    Jan 2003
    Location
    UK
    Posts
    277

    Re: Carrying values over in forms to queries

    Originally posted by pwd
    I'm trying to have a form where once you enter in one field, say, name, it uses that name as a part of a where statment. For example:

    SELECT [Products bought]
    FROM [Sales Database]
    WHERE [Name] = [The name you entered in the last field of the form]

    From here that Product pull down menu lets you select the item which the customer bought. It only display the products associated with that customer you entered in the name for.

    Thanks,

    Eric Madej

    something like........

    SELECT [Products bought]
    FROM [Sales Database]
    WHERE [Name] = [Forms]![MyFormName]![MyFieldName]

Posting Permissions

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