Results 1 to 6 of 6
  1. #1
    olasule1@yahoo.com is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2015
    Posts
    3

    How do i create a parameter to display choiced field in a query

    SELECT m.id, m.surname, m.firstname, m.middlename, Nz([l.aug],0) AS ITEM, Nz([i.aug],0) AS LOAN, m.bank, c.aug AS CONTRIBUTIONS, m.accountno, Nz([l.aug],0)+Nz([i.aug],0)+([c].[aug]) AS Total


    FROM ((membershipquery AS m LEFT JOIN loanquery AS l ON m.id = l.membershipid) LEFT JOIN itemquery AS i ON m.id = i.membershipid) LEFT JOIN membercontributionsquery AS c ON m.id = c.membershipid;

    I created a database using Access 2010,I am thereby looking for a way to create a parameter for the user to be able to display the month needed without having need to come to sql or design view to do it. I look Forward to your response please.

    Sulaiman Lukman.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    Fields in query object design cannot be dynamic. Filter parameter can be dynamic.

    It appears your data structure is not normalized. Do you have a field for each month?
    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.

  3. #3
    olasule1@yahoo.com is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2015
    Posts
    3
    Quote Originally Posted by June7 View Post
    Fields in query object design cannot be dynamic. Filter parameter can be dynamic.

    It appears your data structure is not normalized. Do you have a field for each month?
    "I think it is normalized I tried to follow the rules, Yes I have a field for each month."

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    A field for each month is not normalized structure. This will likely give you lots of issues, as you have just encountered.

    Normalized would be a field with month (or full date) values and a field for the data currently saved in separate month fields. So 2 fields instead of 12.
    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.

  5. #5
    olasule1@yahoo.com is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2015
    Posts
    3
    Hi
    Thank you,but I tried to fine tone (Normalized) and realized my situation is a bit different in that very month has its peculiar deductions on item collected,loan collected and monthly contributions into the society. And all has actually been working fine but I dont know further advice you may give.

    LS

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    Doesn't matter what the monthly requirements are, a normalized database should still handle the data.

    IMO, it is a balancing act between normalization and ease of data entry/output.

    Doesn't change the fact that fields in query object design cannot be dynamic.
    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.

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

Similar Threads

  1. Replies: 1
    Last Post: 07-21-2015, 03:38 PM
  2. Replies: 7
    Last Post: 03-10-2013, 11:29 AM
  3. Replies: 1
    Last Post: 11-21-2011, 03:22 PM
  4. Display Query Value That Requires Input Parameter
    By Access::Student in forum Access
    Replies: 1
    Last Post: 05-29-2009, 08:43 PM
  5. Replies: 6
    Last Post: 02-20-2009, 11:50 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