Results 1 to 3 of 3
  1. #1
    WJReid is offline Novice
    Windows 7 Access 2007
    Join Date
    Jun 2010
    Posts
    1

    Different Criteria from forms

    Hi All,



    I have 3 forms, the first is Categories, the second Procedures and the third is Sub_Procedures.
    The problem that I have is that I want to open the Procedures form with different criteria depending on whether it is being opened from the Categories or the Sub_Procedures form.
    All of the forms are contiuous record forms, so if the Categories form Compliance_ID field is changed, then the Procedures form should be updated so that all of the Procedure_Compliance_IDs for the Category chosen would be updated to the Category Compliance_ID.
    If the Procedures form is opened from the Sub_Procedures form, I need the Procedure_Compliance_ID to be updated to an Integer passed from the Sub_Procedure form.

    I have tried several different ways to get this to work, but I have been unsuccessful.

    Bill

  2. #2
    maximus's Avatar
    maximus is offline Expert
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Aug 2009
    Location
    India
    Posts
    931
    can you explain you proble with an example may be then I will be able to understand your problem better.

  3. #3
    Datagopherdan is offline Competent Performer
    Windows 7 Access 2007
    Join Date
    Dec 2008
    Posts
    220
    If you don't want to place a command button on each one of the forms to open the same form then how about making a double-click event on a field in each one of the forms. This way each form will have it's own procedure with the correct criteria for opening the form.

    Quote Originally Posted by WJReid View Post
    Hi All,

    I have 3 forms, the first is Categories, the second Procedures and the third is Sub_Procedures.
    The problem that I have is that I want to open the Procedures form with different criteria depending on whether it is being opened from the Categories or the Sub_Procedures form.
    All of the forms are contiuous record forms, so if the Categories form Compliance_ID field is changed, then the Procedures form should be updated so that all of the Procedure_Compliance_IDs for the Category chosen would be updated to the Category Compliance_ID.
    If the Procedures form is opened from the Sub_Procedures form, I need the Procedure_Compliance_ID to be updated to an Integer passed from the Sub_Procedure form.

    I have tried several different ways to get this to work, but I have been unsuccessful.

    Bill

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

Similar Threads

  1. Replies: 4
    Last Post: 04-01-2009, 08:49 PM
  2. Query Criteria
    By MrMitch in forum Queries
    Replies: 0
    Last Post: 03-31-2009, 02:25 PM
  3. Variable Criteria
    By JamesLens in forum Queries
    Replies: 0
    Last Post: 01-02-2009, 04:55 PM
  4. Date Criteria
    By tcollins02 in forum Queries
    Replies: 1
    Last Post: 09-09-2008, 08:27 AM
  5. Query Criteria
    By jena in forum Queries
    Replies: 1
    Last Post: 04-29-2008, 11:00 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