Results 1 to 6 of 6
  1. #1
    mccrimmon is offline Novice
    Windows XP Access 2003
    Join Date
    Feb 2010
    Posts
    13

    New to Access - Help Required

    Hello,



    I am hoping someone can help me.

    I have recently just started using access and am trying a few ideas out that have previously been done in excel etc.

    So heres my problem / question....

    Apologies for the long description. I want to ensure that everyone understands what im trying to achieve.


    I have 4 tables:

    tblStatic

    This has many fields, however, the ones we are interested in this example are:

    • Fund
    • Sedol
    • Price Type
    The unique keys are a combination of Fund and Sedol


    tblPriceTypeMapping

    This table has two fields:

    • Price Type (Price Type 1, Price Type 2, Price Type 3 etc etc)
    • Source Table (either tbl Universe or tblGlobal)

    tblUniverse

    So here comes the problem.

    This table has Fund and Sedol along with numerous Price Types. The price Types are fields in this table.

    For Example I will have Fields:

    • Fund
    • Sedol
    • Price Type 1
    • Price Type 2
    • Price Type 3
    etc etc


    tblGlobal

    This is similar to tblUniverse, however, just includes different price types.

    • Fund
    • Sedol
    • Price Type 4
    • Price Type 5
    etc etc



    I basically want to write a query that uses the Static Data table and returns the relevant price, based on the price type, fund and sedol.


    The Price Type mapping table tells me what table to retrieve the price from (tblGlobal or tblUniverse) and the Price Type would then be a field header within that specific table.



    So using example data.....

    tblStatic

    Record 1 Fund = BM01
    Record 1 Sedol = 0101010
    Record 1 Price Type = Price Type 2

    tblPriceTypeMapping

    Price Type 2 = tblGlobal


    tblGlobal

    Fund BM01 and Sedol 0101010 has a price of 1.5 in Price Type 2


    Does anyone have any suggestions on how I would achieve this and if it is even possible?

    Thanks

    McCrimmon
    Access newbie

  2. #2
    Rainlover's Avatar
    Rainlover is offline Expert
    Windows 7 64bit Access 2003
    Join Date
    Nov 2009
    Location
    Queensland Australia
    Posts
    691
    I would suggest that your Table designs are not correct.

    Please search "Normalisation" here and in Google to gain an understanding.

  3. #3
    mccrimmon is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Feb 2010
    Posts
    13
    Hi

    Two of the tables are import tables (tblGlobal and tblUniverse)

    The other two are static.

    How would you arrange this sort of data?

    Cheers

  4. #4
    AdventureBob is offline Novice
    Windows Vista Access 2007
    Join Date
    Nov 2011
    Location
    kabul
    Posts
    13
    A good place to start is to draw what youre output should look like. What are you trying to get to? That will drive your structure, it will also help us understand what youre trying to do.

  5. #5
    mccrimmon is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Feb 2010
    Posts
    13
    I have a list of multiple funds that hold multiple sedols.

    I want to pull the relevant price for each of those fund and sedol combinations based on the price type held in the static data table.

    Some funds and sedol combination will have the price on the Global Table and others will have the price on the Universe Table.

    On each of the tables, there will be more than one price type as field headers.

    So for example.

    Fund "BM01" sedol "0101010" might have a price type of "Price Type 1" which is a field header on table "tblUniverse"

    I then want to find the relevant fund and sedol from this table and return the price from the field header "Price Type 1"


    Is that any clearer?

    Thanks again

  6. #6
    Rainlover's Avatar
    Rainlover is offline Expert
    Windows 7 64bit Access 2003
    Join Date
    Nov 2009
    Location
    Queensland Australia
    Posts
    691
    Have you read up on Normalisation yet.

    Therein you may find the answers you are looking for.

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

Similar Threads

  1. Required Fields
    By scubagal in forum Forms
    Replies: 9
    Last Post: 09-29-2011, 07:26 AM
  2. Next 14 Dates Required
    By Mo2783 in forum Queries
    Replies: 1
    Last Post: 02-28-2011, 11:25 AM
  3. Hello! Help required if possible please...
    By MarkGLyons in forum Access
    Replies: 21
    Last Post: 12-28-2010, 05:36 AM
  4. Access Database Problem: HELP required ASAP
    By maverick in forum Queries
    Replies: 1
    Last Post: 01-06-2010, 04:47 AM
  5. immediate help required
    By pdurgi in forum Access
    Replies: 1
    Last Post: 06-05-2009, 08:21 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