Results 1 to 6 of 6
  1. #1
    jcleary47 is offline Novice
    Windows 8 Access 2013
    Join Date
    Oct 2014
    Posts
    3

    Query for Report Generation via Form?

    Hello all,



    I've made some good progress in my quests to learn access by browsing these forums, but unfortunately I've hit a wall and I'm not sure what to search for at this point that pertains to my problem.

    What I have is an excel sheet that has a list of application names and their associated dependencies. What I'm ultimately trying to do is import these into access so that I can look up an application and see what the dependencies for that application are.

    I've gotten myself to a point where I thought this would be simple, however this seems to not be the case.

    I think my problem might be the fact that when I exported this data into excel, if an application has more than one dependency it lists the application name again for each dependency.

    The report I generate from this query looks exactly how I want it, except I can't get it to show only one application based on my selection in a combo box.

    I tried to use command button to execute an opening of the report and linking the selection into the combo box but I must say I honestly am stuck at this juncture and have no idea what method I should be using to obtain this goal.

    My thinking is I am relatively screwed because each application doesn't have it's own key since they are listed multiple times.

    Any suggestions would be greatly appreciated

    Click image for larger version. 

Name:	ApplicationDependenciesQuery.PNG 
Views:	8 
Size:	18.1 KB 
ID:	18483Click image for larger version. 

Name:	ApplicationDependenciesReport.PNG 
Views:	8 
Size:	21.5 KB 
ID:	18484

  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
    Options for generating a filtered report:

    1. dynamic parameterized query, review http://www.datapigtechnologies.com/f...tomfilter.html
    That example works only for text type fields. Number and date/time types have to be handled differently because wildcard does not work with them.

    2. I don't use dynamic parameterized queries. Review http://allenbrowne.com/ser-62code.html
    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
    jcleary47 is offline Novice
    Windows 8 Access 2013
    Join Date
    Oct 2014
    Posts
    3
    Thank you, that helped me get the combo box sorted out to get the application names listed. I believe the aspect of this that I really can't seem to figure out is getting the dependency listbox to populate with the dependency names associated with the app I am selecting in the combo box:

    Click image for larger version. 

Name:	Form.PNG 
Views:	7 
Size:	2.9 KB 
ID:	18487

  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
    That sounds like cascading combo/list boxes. Review http://www.datapigtechnologies.com/f...combobox2.html
    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
    jcleary47 is offline Novice
    Windows 8 Access 2013
    Join Date
    Oct 2014
    Posts
    3
    Quote Originally Posted by June7 View Post
    That sounds like cascading combo/list boxes. Review http://www.datapigtechnologies.com/f...combobox2.html
    Yes this makes sense. So it shouldn't be an issue that some of my "Application Names" are the same right? I'm assuming Access will know from query logic that repeat information in that column should be tied together?

    On my original they all have individual keys, but on my query the application names have their own key and the dependencies have their own key so I guess this is how it differentiates them?

    Click image for larger version. 

Name:	Orig.PNG 
Views:	5 
Size:	20.0 KB 
ID:	18489 Click image for larger version. 

Name:	Query.PNG 
Views:	5 
Size:	25.0 KB 
ID:	18490

  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
    I'm not sure the ID field is even involved - would need to know more about database structure. The picture looks good.
    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. Error on generation of report
    By TOMMY.MYERS668 in forum Reports
    Replies: 1
    Last Post: 03-02-2013, 11:06 AM
  2. Replies: 3
    Last Post: 02-05-2013, 06:34 PM
  3. Linking data fr report generation
    By DPCarusone in forum Reports
    Replies: 1
    Last Post: 02-08-2012, 09:30 AM
  4. Report Generation from with a Form
    By amangupts in forum Reports
    Replies: 29
    Last Post: 07-22-2011, 08:40 AM
  5. Report Generation
    By Lorlai in forum Reports
    Replies: 5
    Last Post: 07-01-2011, 11:13 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