Results 1 to 3 of 3
  1. #1
    jumpingtree is offline Novice
    Windows 7 Access 2007
    Join Date
    Aug 2010
    Posts
    8

    adapt the given fragment code

    how to adapt the fragment of code below to show:
    a) Two columns - the Filipino Population and the Total Population
    b) The Filipino Population as a percentage of the total population

    SELECT DISTINCTROW POPDATA.CITYNUM,
    COUNT (*) FROM POPDATA
    WHERE POPDATA.ANCNUMBER=720
    GROUP BY POPDATA. CITYNUM
    ORDER BY COUNT (*) DESC;



    help, anyone?

  2. #2
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    how many records are there? what do the records represent?

  3. #3
    jumpingtree is offline Novice
    Windows 7 Access 2007
    Join Date
    Aug 2010
    Posts
    8
    3 columns:
    First: column for the ID number
    Second: The City
    Third: Anc Number (includes descriptions like "not reported," "german," etc.)

    i attached the image.

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

Similar Threads

  1. Adapting a fragment code
    By accesscurrymoodle in forum Programming
    Replies: 1
    Last Post: 08-23-2010, 08:28 AM
  2. Access 2003 code vs Access 2007 Code
    By ralphjramirez in forum Access
    Replies: 5
    Last Post: 11-23-2009, 12:33 PM
  3. Help with VBA Code
    By access.newby in forum Forms
    Replies: 1
    Last Post: 11-15-2009, 05:43 AM
  4. Help with vba code
    By rockape in forum Programming
    Replies: 11
    Last Post: 09-29-2009, 06:49 AM
  5. Need help with code
    By hoenheim in forum Programming
    Replies: 9
    Last Post: 09-11-2008, 04:19 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