Advertisement

08.07.2008 at 07:48AM PDT, ID: 23629500
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.9

Pop-Up Form to Filter Report

Asked by loepem in Access Reports, Microsoft Access Database, Access Forms

Tags: , ,

I'm trying to create a pop-up form to filter a report.  The form has 5 drop down combo boxes and then the 3 command buttons.  The five menus are searching for either numbers or letters.  The first menu is looking for either 1 or 2, the second is looking for a three digit number, the third is a letter along with the fourth and the fifth is a couple letters.  

I'm very confused with the syntax and I continue to get errors.  I have been so turned around in the different forums that I'm really not sure what kind of code I need.

Right now I am able to pull up the pop-up menu in the report and it has data for the first 3 options, but for the second two it asks for me to enter a parameter value.  

This is my code right now, and as I'm sure you guessed I am a beginner and very confused!

Private Sub Clear_Click()
    Dim intCounter As Integer
    For intCounter = 1 To 5
        Me("Filter" & intCounter) = ""
    Next
End Sub

Private Sub Close_Click()
    DoCmd.Close acForm, Me.Form.Name
End Sub

Private Sub Form_Close()
DoCmd.Close acReport, "rptFeedwater" 'Close the Feedwater report.
DoCmd.Restore 'Restore the window size
End Sub

Private Sub Form_Open(Cancel As Integer)
DoCmd.OpenReport "rptFeedwater", A_PREVIEW 'Open Feedwater report.
DoCmd.Maximize 'Maximize the report window.
End Sub


Private Sub Set_Filter_Click()
Dim strSQL As String, intCounter As Integer

'Build SQL String.
    For intCounter = 1 To 5
        If Me("Filter" & intCounter) <> " " Then
                     
            strSQL = strSQL & "[" & Me("Filter" & intCounter).Tag & "] " & " = " & Chr(34) & Me("Filter" & intCounter) & Chr(34) & " And "                            
            End If
    Next
    If strSQL <> "" Then
        ' Strip Last " And ".
        strSQL = Left(strSQL, (Len(strSQL) - 5))
  ' Set the Filter property.
        Reports![rptFeedwater].filter = strSQL
        Reports![rptFeedwater].FilterOn = True
    End If
    End Sub

Start Free Trial
[+][-]08.07.2008 at 07:58AM PDT, ID: 22181583

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.07.2008 at 08:01AM PDT, ID: 22181614

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.07.2008 at 08:08AM PDT, ID: 22181700

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.07.2008 at 08:11AM PDT, ID: 22181726

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.07.2008 at 08:16AM PDT, ID: 22181773

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.07.2008 at 08:17AM PDT, ID: 22181790

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.07.2008 at 08:32AM PDT, ID: 22181957

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.07.2008 at 12:02PM PDT, ID: 22184163

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.07.2008 at 02:22PM PDT, ID: 22185584

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.08.2008 at 04:16AM PDT, ID: 22188880

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.08.2008 at 04:52AM PDT, ID: 22189031

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Access Reports, Microsoft Access Database, Access Forms
Tags: Microsoft, Access, 2003
Sign Up Now!
Solution Provided By: capricorn1
Participating Experts: 1
Solution Grade: A
 
 
[+][-]08.08.2008 at 04:55AM PDT, ID: 22189049

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628