Results 1 to 2 of 2

Thread: Creating a query on a search criteria

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Dec 2003
    Posts
    509

    Creating a query on a search criteria

    I have a form. If on the form, i enter the primary field, a report needs to be generated given a criteria.

    My question is, how do i set up the query so i say that value of supplier in formA-when it = a value then do a report.

    Heres the problem, this only needs to be temp and not permanent so i dont want to create a new table.

    Hope you understand what i mean.

  2. #2
    Don't Panic! Ecniv's Avatar
    Join Date
    Nov 2000
    Location
    Amsterdam...
    Posts
    5,343

    Re: Creating a query on a search criteria

    Initial easiest way is when you get your query to retrieve the data, use a criteria and 'build' it to point at the form.combofield.

    The combo list then has to have a unique value or text value which you will filter on.

    The criteria would look something like:
    forms!frmYourFormName.ControlName

    Depends how you run the query.


    Vince

    BOFH Now, BOFH Past, Information on duplicates

    Feeling like a fly on the inside of a closed window (Thunk!)
    If I post a lot, it is because I am bored at work! ;D Or stuck...
    * Anything I post can be only my opinion. Advice etc is up to you to persue...

Posting Permissions

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



Click Here to Expand Forum to Full Width