Results 1 to 6 of 6
  1. #1
    RoadRunner is offline Novice
    Windows 7 32bit Access 2003
    Join Date
    May 2011
    Location
    England
    Posts
    4

    Question New to Access

    Hi ,



    Using Access 2003 pretty much for the first time as the data I have is too big for excel and 2007/2010 is not supported by my company. Bugger , head wall, bang, better figure it out etc.

    Anyway moan over. I need to take date that is in two tables one being payroll data for a liability and the other being invoice data for the deduction. I have populated a sample table, linked them and set up a simple query to combine them.

    This by some miracle works, but now I want to compare them. I.e. in my querry I want to set up a bespoke field that takes the invoice value away from the payroll value.

    Please would someone advise how I do this.

    Thanks

    Beepbeep


  2. #2
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows XP Access 2003
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,544
    Hi
    Create a new field in your query with:

    Balance:[Field1]-[Field2]
    You will need to change the field names to the names of your fields.

    This should give you the result you require in a column called Balance.

  3. #3
    RoadRunner is offline Novice
    Windows 7 32bit Access 2003
    Join Date
    May 2011
    Location
    England
    Posts
    4

    Question New To Access

    Hi Bob,

    Thanks for that, though I could not get it to work.

    I have attached a mspaint image of what I put in.

    When I run the query it comes up with an input box and then I get a blank query grid.

    Obviuosly doing something wrong.

    Beepbeep

  4. #4
    RoadRunner is offline Novice
    Windows 7 32bit Access 2003
    Join Date
    May 2011
    Location
    England
    Posts
    4

    Talking Recall Request

    Hi,

    It's ok figured out my mistake,

    I put in a typo and the reason it returned no values.

    Opps, complete novice at this, started yesterday.

    Beepbeep


  5. #5
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows XP Access 2003
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,544
    Hi

    My eyes are not as good as they once were so I can't be sure, but I think you've put

    Balance:[Field1]-[Field2]

    in the wrong place.

    It should be in the top line of the querry grid (where you have Expr) that is labled on the left with "Field". All other lines in that column should be blank.

    You are getting the input box because you have something in the Criteria line that is not required and not understood by Access.
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  6. #6
    RoadRunner is offline Novice
    Windows 7 32bit Access 2003
    Join Date
    May 2011
    Location
    England
    Posts
    4

    Smile Thanks

    Yes, that makes sense.

    Thanks

    Matt

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

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