Results 1 to 6 of 6
  1. #1
    Nixx1401 is offline Competent Performer
    Windows Vista Access 2003
    Join Date
    Feb 2010
    Location
    Barbados
    Posts
    115

    Query and forms

    I created this parameter query which prompts you for a visitor name and name of child, this query is used to create a form when the form opens it autofills the visitor information for the visitor corresponding to the respective child. the subform in the form has transaction information such as transaction date, type of mail such as visit, mail or postcard and the process sending or receiving.

    I place a add a new record command button I want when the add new record is clicked the dialog box from the query prompts you each and every time for the childs name and visitor name so this information is autofilled all the time.

    I have 3 tables: Child, Visitor and transactions

  2. #2
    llkhoutx is offline Competent Performer
    Windows Vista Access 2007
    Join Date
    Jan 2010
    Location
    Houston, Texas USA
    Posts
    373
    and . . . the question is?

  3. #3
    Nixx1401 is offline Competent Performer
    Windows Vista Access 2003
    Join Date
    Feb 2010
    Location
    Barbados
    Posts
    115
    I would like to change the parameter to a dialog box which will prompt the user for the Visitor name and child name.

    Fields in the query:
    Field StrChildNo
    Table Child

    Concatenation of Child Name

    Concatenation of Visitor Name

    Fields containing the visitors address

    I have criteria under the Visitors Name and Child name and when the form opens this information is autofilled. I would like change the parameter pop up box to a dialog box which have combo boxes listing the concatenations of the child name and visitors name and fill the form with this information.

  4. #4
    llkhoutx is offline Competent Performer
    Windows Vista Access 2007
    Join Date
    Jan 2010
    Location
    Houston, Texas USA
    Posts
    373
    An input box, the prompt in a query, does not allow a combo box. Use a popup form for a combo box.

  5. #5
    Nixx1401 is offline Competent Performer
    Windows Vista Access 2003
    Join Date
    Feb 2010
    Location
    Barbados
    Posts
    115
    dont quite understand

  6. #6
    llkhoutx is offline Competent Performer
    Windows Vista Access 2007
    Join Date
    Jan 2010
    Location
    Houston, Texas USA
    Posts
    373
    Your words
    Code:
    parameter pop up box 
    implies to me an "InputBox" from "[Specify child Name]" in your query, e.g
    Code:
    SELECT FROM YourTableOrQueryName WHERE Name = [Specify Child Name
    When the query is run, you'll be prompted to "Specify Child Name" with a textbox to specify the child' name.

    My words
    Code:
    combo box 
    implies a control on a form used in a query criteria, e.g.
    Forms!YourFormName!ComboBoxName = "Jones, John"
    Your query would be
    Code:
    SELECT FROM YourTableOrQueryName WHERE Name Forms!YourFormName!ComboBoxName 
    When the query is run the forms control's value is put into your query automatically.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Need help with query table issue using forms
    By KLynch0803 in forum Access
    Replies: 1
    Last Post: 06-02-2009, 10:40 PM
  2. Query / Forms ??
    By caljohn527 in forum Forms
    Replies: 1
    Last Post: 02-11-2009, 09:59 PM
  3. Replies: 0
    Last Post: 11-12-2008, 05:18 PM
  4. Replies: 0
    Last Post: 03-27-2008, 08:20 AM
  5. Replies: 2
    Last Post: 11-09-2005, 02:51 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums