Results 1 to 5 of 5
  1. #1
    kewlgolf is offline Novice
    Windows XP Access 2007
    Join Date
    Nov 2011
    Posts
    4

    Please Help! Access Rookie

    Hi,

    I'm new to the forums and seeking help in creating an Access Form / Report...

    We have an Access database created with about 8 tables of Municipal information (contact info, council info, address, meeting dates, etc.). We have relationships created for all tables (a unique Municipal Code for each of the 74 municipalities is the primary key).

    We would like to create reports with our information in Access since things are easily automated and less time consuming when you get going, but do not have the proper training or experience to create some of the more complex functions necessary to get a proper report.

    (We currently create the reports in Word, and it is painstaking making sure things are lined up, and editing information)



    What I would like to know is: what do I need to create? a Form, or a report? I know a form is used to edit the information for specific fields. One example where I ran into trouble is this:

    I want to have a field (textbox?) on the report called "Mayor"... but the information in the "council" table is organized in such a way that First and Last names are separate, along with councillor type (Mayor, Deputy Mayor, Chairperson, etc...). I realize I have to create an expression of some type to automate this. So I need to combine First and Last names where councillor type equals mayor, and this needs to be grouped by each municipality (so the mayor of Springfield, gets assigned to the Springfield record on the form).

    Any help is greatly appreciated!

  2. #2
    Robeen is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    Mar 2011
    Location
    Tulsa, Oklahoma.
    Posts
    1,596
    I think the first thing you need to do is create a query that contains ALL the data you want to see.

    To combine Data from different fields, you can do something like this in your query design:

    In a new column in your query design view type something like:
    FullName: [FirstName] & " " & [LastName]
    . . . that will combine the first and last names for you and put them in a column named 'FullName'.

    Once you've got all the data you need in your query - create your report using the Query as your Data Source.

    When you're creating your report, if you use the Report Wizard, you will be given the option to add Grouping and sorting. You can get most of your stuff done in the Report Wizard.

    Let me know if you need more help!
    Last edited by Robeen; 11-30-2011 at 09:56 AM. Reason: typo

  3. #3
    jzwp11 is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2010
    Location
    Dayton, OH
    Posts
    2,901
    It sounds like you need a report.

    Assuming that you want the output to look like the following, you can do it in the report or a query (and then base the report on the query):

    Public, Joe, Mayor

    In the query it would look like this:

    SELECT LastNameField & ", " & FirstNameField & ", " & councillortypeField as Councillor
    FROM...

    Now with respect to having the mayor always show up first in the report that is a little trickier. I can think of 2 ways to do it.

    1. Create a query that brings in the city info, the people information but only if the councillortype="Mayor". Create a report based on this query. Create another query that references the city but excludes the mayor (councillortype<>"Mayor"). Create another report based on this query. Drag and drop this report into the detail section of the first report and link via the city key field (I assume). This would then be a subreport in the main report.

    2. Add a field to your councillor type table that would hold a sequence or rank number. Assign the mayor as rank 1 and the others with higher numbers. Create a query that brings the relevant tables together and sort by the new rank field. the mayor will just be listed first in a list of people. I'm not sure if this is what you were after.

  4. #4
    kewlgolf is offline Novice
    Windows XP Access 2007
    Join Date
    Nov 2011
    Posts
    4
    thanks for the help... I am slowly but surely getting it put together with the help of developing the queries beforehand!

    It's a great way to brush up on my SQL skills

  5. #5
    jzwp11 is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2010
    Location
    Dayton, OH
    Posts
    2,901
    You're welcome.

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

Similar Threads

  1. Rookie Questions related to data entry
    By weapon3000 in forum Access
    Replies: 5
    Last Post: 12-24-2010, 09:46 AM
  2. VBA rookie needs help
    By everette in forum Programming
    Replies: 5
    Last Post: 10-16-2010, 03:59 PM
  3. Rookie Messed Up Main Input Form
    By genest11 in forum Forms
    Replies: 2
    Last Post: 01-14-2010, 02:17 PM
  4. Rookie needs help with basic reporting
    By James Rousselle in forum Reports
    Replies: 0
    Last Post: 03-01-2007, 02:36 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