Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 2012

    Unanswered: Running Multiple Queries in a form

    I have a form that I have setup to run 2 separate append queries with one button. Currently I have macros setup in the OnClick to run:
    OpenQuery (for query #1)
    OpenQuery (for query #2)

    What it is doing when I run this, is create two different records for the same person. For instance:

    1 First Name, Last Name Date
    1 First Name, Last Name WorshipType

    What I want is for it to create one record with all the information. For instance:

    1 First Name, Last Name Date WorshipType

    How can I accomplish this? Thanks

  2. #2
    Join Date
    Mar 2009
    Provided Answers: 15
    Change one of the queries (or create a new one) and insert all fields with it:
    INSERT INTO TableName ( [First Name], [Last Name], [Date], WorshipType )
        VALUES ( Value1, Value2, Value3, Value4 );
    Then call it from the OnClick event handler of the command button.
    Have a nice day!

Posting Permissions

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