Excel formula converting to Acces in Query

Sjon1974

New Member
Joined
Apr 1, 2020
Messages
38
Office Version
  1. 365
Platform
  1. Windows
All,
I am trying to create a query with a calculated field.

In excel it is easy, =g2+H3-I3

But how can i do this in a query, i am trying to get the value with Dlast and Dlookup but no succes yet

So i want the last value of the column Bancsaldo and add and retrect a value from the line below that. So i create a new Bancsaldo.
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
Hi, as a rule Access does not have any conception of "the line below". SO generally you have to work out your query expressions based on the data in the rows, not the location of the rows. If you have never used Access or worked with SQL before this will likely sound impossible. But it is hard to say precisely what would be the actual solution here without understanding the data and what is in the fields/columns you are working with and what is the structure in this table.
 
Upvote 0
The weird thing is that Access query can find values but i get a error from access that it cannot find that value.
 

Attachments

  • Access example1.JPG
    Access example1.JPG
    108.4 KB · Views: 8
  • Access example2.JPG
    Access example2.JPG
    24.1 KB · Views: 7
  • Access example3.JPG
    Access example3.JPG
    19.8 KB · Views: 7
Upvote 0
That doesn't look like the proper use of the DLast function.
You can read up on the function here:
 
Upvote 0
At the end, i created two Querys that ultimete gave me the result i was lookinbg for
 
Upvote 0

Forum statistics

Threads
1,214,932
Messages
6,122,331
Members
449,077
Latest member
jmsotelo

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top