Results 1 to 2 of 2
  1. #1
    sorensjp is offline Novice
    Windows 10 Access 2016
    Join Date
    Oct 2017
    Location
    Yokosuka, JP
    Posts
    4

    Creating my First Query (not very well)

    All,



    I’m an absolute Access novice in the US Navy currently stationed in Japan. I have some experience with Excel and now trying to move up to Databases. My goal (albeit very ambitious) is to create a better “Weapons Qualification” Tracker. The attached file C_VILLE MASTER GUN QUAL TRACKER (V0.91)PIVOT_TBL.xlsm. I created from an article from Excel MVP Trevor Easton web http://www.onlinepclearning.com/staf...xcel-database/. The password for the file is "Online".

    Query – my first hurdle Ranks and Names. The attached Access DB file is what I’ve started with are just tables. And attempted to make Relationships. Here my goal is to understand how to make a cascading Form (don’t know the correct term). Ultimately, I would like to create a user Form to add, edit or delete the Members (Sailors). I just don’t understand how to setup the rank structures to build the base for the form. I could be going about this all wrong of course .

    The Form needs to update a Members Rank without effecting the name:
    tbl2Enlisted_Officer_Pick determines if the member is Officer or Enlisted.
    tblRanks_Enlisted & tblRanks_Officer are the Rank and Pay Grades associated with the enlisted and officers respectively
    tbl1Member_Names is self-explanatory.

    Eventually on the Enlisted Ranks I would like to add the feature of “Ratings” (i.e. BMC, BM1, BM2, HTC, MMC, STGCM, STGSC, STGC, STG1, STG2, STG3, STGSN, STGSA…).

    I appreciate any advice. Access is interesting and has a great many more features then Excel (or at least I think so).

    C_VILLE MASTER GUN QUAL TRACKER (V0.91)PIVOT_TBL.xlsm.zip
    ADMIN TRACKER.zip

    V/r,
    Jim

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,928
    Welcome to the forum and thank you for your service.

    Don't look at Access as having more features than Excel. The apps are completely different for different purposes and really cannot be compared to each other.

    On first look at your db, I would recommend only 1 table for all rank and pay codes regardless if officer or enlisted. The rank and/or pay grade code identifies whether officer or enlisted. You could have another field with "Officer" or "Enlisted" values if you want. Also, typos in some of the rank codes using zero (0) instead of O (look at 0-7 and 0-5, shouldn't those be O). tbl2Enlisted_Officer_Pick is unnecessary unless you create a category field in the rank/pay table.

    I really don't understand how you managed to link an autonumber primary key field to a text foreign key field. Even if the Relationships builder allowed this, cannot be done in a query.

    Doesn't make sense to link Rank_Type and Pay_Grade fields. These fields don't share common values. Same goes for Pay_Grade and Rank_ID

    I think you need a better understanding of what primary and foreign keys are and how tables should be linked on them.

    On the positive side, I am glad to see no spaces or punctuation/special characters (with exception of underscore which is acceptable) in naming convention.

    The term you may have been looking for is form/subform arrangement (or nested forms) but so far your db doesn't require this. You might find cascading (or dependent) comboboxes useful down the road.
    Last edited by June7; 10-22-2017 at 10:35 PM.
    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. Need Help Creating a Query
    By spyldbrat in forum Access
    Replies: 4
    Last Post: 09-24-2015, 08:18 AM
  2. Creating a query in VBA help?
    By offie in forum Programming
    Replies: 9
    Last Post: 07-15-2013, 01:54 PM
  3. Replies: 3
    Last Post: 01-01-2013, 06:22 PM
  4. need help with creating a certain query
    By tosho in forum Queries
    Replies: 4
    Last Post: 03-30-2012, 02:24 AM
  5. Creating a Query Need HELP
    By ampd in forum Queries
    Replies: 1
    Last Post: 02-16-2011, 12:12 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