Page 2 of 2 FirstFirst 12
Results 16 to 26 of 26
  1. #16
    yes sir is offline Competent Performer
    Windows Vista Access 2007
    Join Date
    Aug 2010
    Posts
    159
    Objects in question:

    Form: Add a Scouting Event


    -Command button and combo box found at bottom of form
    Report: Scouting Forms
    -College text box is just randomly placed for now.

  2. #17
    yes sir is offline Competent Performer
    Windows Vista Access 2007
    Join Date
    Aug 2010
    Posts
    159
    Ok I used this for my code:

    Private Sub Print_All_Team_s_Forms_Click()
    DoCmd.OpenReport "Scouting Forms", acViewPreview, , "School = '" & Me.Team & "'"
    End Sub


    Now I am able to atleast get the Scouting Form Report to open, however, it does not filter the records at all. Well it is filtering, just not the way I want. It shows the Report as an empty record.

  3. #18
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,642
    Did you delete the sample? I never downloaded it. You're treating the field as text now, rather than numeric.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  4. #19
    yes sir is offline Competent Performer
    Windows Vista Access 2007
    Join Date
    Aug 2010
    Posts
    159
    Oh boy, I'm getting somewhere. I had to change the combo box to just a regular ol' boring text box, but now the user really can't verify if they are inputting the School Name correctly.

    I'm wondering if maybe there is a way around this? Maybe have whatever value is selected in the cbo box go into the Text box? I'm not sure that is even possible. Then I could just hide the text box via transparent background, font color, etc.

  5. #20
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,642
    You can certainly copy the selection in the combo to a textbox, but why? It should work with the combo, presuming the data in the combo is appropriate to the field in the report. Was there something wrong with the sample db?
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  6. #21
    yes sir is offline Competent Performer
    Windows Vista Access 2007
    Join Date
    Aug 2010
    Posts
    159
    Quote Originally Posted by pbaldy View Post
    You can certainly copy the selection in the combo to a textbox, but why? It should work with the combo, presuming the data in the combo is appropriate to the field in the report. Was there something wrong with the sample db?
    Well, I was able to make it work with typing in a text box, but not by picking from the drop down list in the combo box.

    Obviously, I'm putting something in wrong with my code. I tried both ways, treating the data as if it were a number and I tried it as text, as far as doing the code.

    I can upload the database again.

  7. #22
    yes sir is offline Competent Performer
    Windows Vista Access 2007
    Join Date
    Aug 2010
    Posts
    159
    Form: Add a Scouting Event
    Report: Scouting Forms
    Last edited by yes sir; 10-01-2010 at 11:29 PM. Reason: removed attachment

  8. #23
    yes sir is offline Competent Performer
    Windows Vista Access 2007
    Join Date
    Aug 2010
    Posts
    159
    Are you able to take a look?

  9. #24
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,642
    You have a mismatch between the bound column of the combo, which is the numeric value, and the School field in the report, which is the text value. Try this:

    DoCmd.OpenReport "Scouting Forms", acViewPreview, , "School = '" & Me.Team.Column(1) & "'"
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  10. #25
    yes sir is offline Competent Performer
    Windows Vista Access 2007
    Join Date
    Aug 2010
    Posts
    159
    Quote Originally Posted by pbaldy View Post
    You have a mismatch between the bound column of the combo, which is the numeric value, and the School field in the report, which is the text value. Try this:

    DoCmd.OpenReport "Scouting Forms", acViewPreview, , "School = '" & Me.Team.Column(1) & "'"

    Mo Money. Thanks man.

  11. #26
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,642
    Happy to help.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Print Forms
    By Desstro in forum Forms
    Replies: 1
    Last Post: 09-04-2010, 02:23 AM
  2. Print preview with forms
    By jonesy29847 in forum Reports
    Replies: 4
    Last Post: 07-13-2010, 10:36 AM
  3. Replies: 8
    Last Post: 06-30-2010, 10:57 PM
  4. Creating User friendly Search Forms
    By BernardKane in forum Forms
    Replies: 7
    Last Post: 01-29-2010, 11:28 AM
  5. Help!!! user friendly forms/date entry
    By megank in forum Access
    Replies: 3
    Last Post: 03-31-2009, 09:47 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