Results 1 to 3 of 3
  1. #1
    JimmyRayBob is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2011
    Posts
    2

    Starter Questions

    Hi Everyone.



    I am BRAND NEW to Access, and while i'm pretty good with computers in general, i don't have any experience programming or with Access.

    I am starting a new database from scratch - it will begin with one table of contacts (shareholders) and the number of shares they own in several businesses. I would like access to calculate the %age of ownership in each company. Very easy in Excel, but after hours of searching these forums and elsewhere, I am at a loss.

    Name #Shares %age
    Jim 15 xx%
    Bob 33 yy%
    Tom 27 zz%
    Total 75 100%

    Pretty straight-forward I think. Should i be doing this in a Query? And if so, how?


    2nd Quesiton:
    We have about 25 companies, and i want all the reports to look the same. Is there a way to have a button in a form so when i click on the button, i get a list of queries to run (for example, all shareholders with >0.1 shares of a company X), and then have that list automatically go into a Report?

    Thanks in advance.

    Jim

  2. #2
    Stingaway is offline Efficiency Junkie
    Windows 7 64bit Access 2010 64bit
    Join Date
    Sep 2011
    Location
    The deep south. Keep going until you hit water basically.
    Posts
    224
    First part - yes, do it in a query. Typically for these I have a ship in a bottle approach, where I first calculate the totals and then use two queries to get what I want. Here is an example:

    SELECT tmp_tbl_Demo.Person_Name, tmp_tbl_Demo.Person_Shares, qry_Totals.SumOfPerson_Shares, [Person_Shares]/[SumOfPerson_Shares] AS Expr1
    FROM tmp_tbl_Demo, qry_Totals;

    The totals query looks like this:
    SELECT Sum(tmp_tbl_Demo.Person_Shares) AS SumOfPerson_Shares
    FROM tmp_tbl_Demo;



    I created a temp table with what you had above, created a query to total it, then another query to compare the data. It sounds complicated, but it's not really.. It is one of those times where I generally would use Excel just for ease of use (and I can do it a lot faster that way), but you can still get the same result in your query. Also, if you turn on your totals in the query view, you can see exactly what you would in Excel.

    Second question: Yes. What you mention is very do-able. I have many databases that are simply report databases that provide a similar function.

    Hope this helps.
    Last edited by Stingaway; 10-24-2011 at 08:13 AM. Reason: Adding the totals query info

  3. #3
    JimmyRayBob is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2011
    Posts
    2
    Stingaway ... thanks for the quick response. I will take a look at this soon (when i get caught up on other projects).

    Jim

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

Similar Threads

  1. QBF Questions
    By brandonze in forum Forms
    Replies: 2
    Last Post: 08-04-2011, 01:49 PM
  2. Questions Regarding Reports
    By rockrider in forum Reports
    Replies: 0
    Last Post: 02-01-2011, 03:29 PM
  3. Relationship questions
    By ertjeffrey in forum Access
    Replies: 3
    Last Post: 01-24-2011, 04:50 PM
  4. First Database Questions...
    By qu1ckdry in forum Database Design
    Replies: 0
    Last Post: 03-01-2010, 09:33 AM
  5. New to this forum and have questions
    By Sinatra Fan in forum Access
    Replies: 4
    Last Post: 04-14-2006, 06:53 PM

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