Page 2 of 2 FirstFirst 12
Results 16 to 21 of 21
  1. #16
    christm is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Feb 2013
    Posts
    13
    Thanks for your help so far. I have a report within the database which is based on a query and the query has a parameter.
    So when you open the report it asks for a value for this parameter.
    I'd like this to be a LOV of all the distinct values in a column within a table.
    I've tried adding things to the query like a Display Control of Combo Box, Row Source/Type of the table and row source of a bit of sql to bring back the values but it's not showing when I run the report, it's still just expecting the user to type in without any LOV.
    Am I doing something wrong?



    Thanks

    Martin

  2. #17
    christm is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Feb 2013
    Posts
    13
    Also, taking advice from here, I'm trying to do Age as a calculated field.
    I've went into the form and on the field properties of Age, changed the Control Source from the column Age to be 'DateDiff("yyyy",[Date of Birth],Now())'
    But when I run the report, it's showing as #Name?

    Am I doing something obvious wrong?

    Thanks

    Martin

  3. #18
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    What is LOV?

    I don't use query parameter input prompts. Can't validate the inputs which is what I think you are trying do. Review http://datapigtechnologies.com/flash...mtoreport.html


    The age calc looks fine. Would have to analyze your report.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  4. #19
    christm is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Feb 2013
    Posts
    13
    Sorry - List of Values. New version of report with Age cal failing uploaded.

    Thanks

    Martin
    Attached Files Attached Files

  5. #20
    christm is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Feb 2013
    Posts
    13
    Age issue fixed - was missing an '=' sign at the start of the expression.

    Within the report there is the following query:
    SELECT [Player Details].[First Name], [Player Details].[Last Name], [Player Details].Age, [Player Details].Nationality, [Player Details].EU_Passport, [Player Details].Height, [Player Details].[Current Status], [Player Details].[Video Link 1], [Player Details].[Preferred Position], [Player Details].[Other Position], [Player Details].[Contract End Date], [Reports Details].[Scouted Date], [Reports Details].Club, [Reports Details].Opponent, [Reports Details].Division, [Reports Details].[Physical Comments], [Reports Details].[Technical Comments], [Reports Details].[Mental Comments], [Reports Details].[Overall Comments], [Reports Details].Grade, [Reports Details].[Scouted By]
    FROM [Player Details] INNER JOIN [Reports Details] ON [Player Details].ID = [Reports Details].[Player ID]
    WHERE ((([Reports Details].Grade)=[Grade]));


    However when I run the query it doesn't ask me for a parameter (was expecting it to ask me for Grade).
    It just runs the query, bringing back all records.
    Shouldn't it ask me for the parameter input?

    Thanks

    Martin
    Last edited by christm; 03-08-2013 at 09:22 AM.

  6. #21
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    There is a field called Grade in the data source so Access finds it and uses it. The prompt must be something Access won't find, such as [Enter grade between 1 and 5].

    I never use query parameter input prompts because can't validate entry.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Half-day leave computation
    By bsvubana in forum Access
    Replies: 5
    Last Post: 11-29-2012, 02:28 AM
  2. Replies: 7
    Last Post: 06-13-2012, 06:27 PM
  3. Open form and locate it on the bottom
    By Dominaz in forum Forms
    Replies: 4
    Last Post: 11-17-2011, 08:03 PM
  4. Totals showing across bottom of Datasheet view
    By Laurie B. in forum Access
    Replies: 8
    Last Post: 09-14-2011, 01:47 PM
  5. can't update form-in the bottom bar of
    By ymds in forum Access
    Replies: 2
    Last Post: 07-19-2010, 06:26 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