Welcome to SPN

Register and Join the most happening forum of Sikh community & intellectuals from around the world.

Sign Up Now!

Linking tables and adding fields

Discussion in 'Information Technology' started by Adam Armstrong, Nov 12, 2005.

  1. Adam Armstrong

    Adam Armstrong
    Expand Collapse
    Guest

    Hi all

    I have a problem in that I need to manipulate data contained in a
    database to conform to some weird pension rules. The gross/net pay is
    stored according to pay period, but the individual pay elements are only
    stored on a temporary basis. For example, I have one table called Pay,
    with fields for Employee ID, PayPeriod, GrossPay, NetPay, .... and
    another table called VAR (for variable pay elements). The VAR table
    changes every month, and doesn't maintain records according to
    PayPeriod.

    These tables cannot be changed as they are part of a payroll package.
    However, I have created a second database that links to the payroll one.
    As I need to create a record of the variable pay elements for each pay
    period, I was wondering if there is a way to link the tables, but be
    able to force a PayPeriod field into the data so that it doesn't
    overwrite the previous pay periods details. Either that, or import the
    details directly into a table, but have a query which asks for which pay
    period the information relates to. Does any of this make sense?!

    Any and all help would be gratefully received!

    Adam
     
  2. Loading...


  3. Arvin Meyer [MVP]

    Arvin Meyer [MVP]
    Expand Collapse
    Guest

    It makes absolute sense. Fortunately Access is one of the very few DBMS that
    can connect dissimilar data sources in a query. As long as you aren't
    updating one of the accounting tables, you can experiment until you get what
    you need. To get the data from the second database, choose File ... Get
    External Data ... Link and add the ones you want.
    --
    Arvin Meyer, MCP, MVP
    Microsoft Access
    Free Access downloads
    http://www.datastrat.com
    http://www.mvps.org/access

    "Adam Armstrong" <a_p_s@tiscali.co.uk> wrote in message
    news:4375154d$1_4@mk-nntp-2.news.uk.tiscali.com...
    > Hi all
    >
    > I have a problem in that I need to manipulate data contained in a
    > database to conform to some weird pension rules. The gross/net pay is
    > stored according to pay period, but the individual pay elements are only
    > stored on a temporary basis. For example, I have one table called Pay,
    > with fields for Employee ID, PayPeriod, GrossPay, NetPay, .... and
    > another table called VAR (for variable pay elements). The VAR table
    > changes every month, and doesn't maintain records according to
    > PayPeriod.
    >
    > These tables cannot be changed as they are part of a payroll package.
    > However, I have created a second database that links to the payroll one.
    > As I need to create a record of the variable pay elements for each pay
    > period, I was wondering if there is a way to link the tables, but be
    > able to force a PayPeriod field into the data so that it doesn't
    > overwrite the previous pay periods details. Either that, or import the
    > details directly into a table, but have a query which asks for which pay
    > period the information relates to. Does any of this make sense?!
    >
    > Any and all help would be gratefully received!
    >
    > Adam
     

Share This Page