A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Previous Row of Data



 
 
Thread Tools Display Modes
  #1  
Old July 6th, 2005, 10:16 PM
Brad
external usenet poster
 
Posts: n/a
Default Previous Row of Data

Thanks for taking the time to read my question.

Just wondering if it is possible to make a formula in a query that refers to
the previous row of data while still working in the current row of data.

Thanks,

Brad
  #2  
Old July 6th, 2005, 10:48 PM
Van T. Dinh
external usenet poster
 
Posts: n/a
Default

Define what you meant by "previous".

Records are stored unordered in JET. When you retrieve Records, Access will
use some sort of default ordering, usually the PrimaryKey. However, you
cannot rely on this 100%.

Since "previous" implies ordering in some way, you need to spell out the
ordering / sorting you want and include this in your Query.

Post relevant Table Structure, the ordring required and what you need from
the "previous" Record in the current process.

--
HTH
Van T. Dinh
MVP (Access)





"Brad" wrote in message
...
Thanks for taking the time to read my question.

Just wondering if it is possible to make a formula in a query that refers

to
the previous row of data while still working in the current row of data.

Thanks,

Brad



  #3  
Old July 6th, 2005, 10:54 PM
Brad
external usenet poster
 
Posts: n/a
Default

Thanks so much for the quick reply.

I have been trying to help a user here, and suggested a few things to avoid
this. They said they tried my suggestions, but they didn't work. I tried
them and now they work.

The user said he did this once before, and said there was some sort of
Access function that allowed him to do this. He forgets what it is called.

I have now solved the problem, but am still curious if this function really
exists.

Thanks again,

Brad

"Van T. Dinh" wrote:

Define what you meant by "previous".

Records are stored unordered in JET. When you retrieve Records, Access will
use some sort of default ordering, usually the PrimaryKey. However, you
cannot rely on this 100%.

Since "previous" implies ordering in some way, you need to spell out the
ordering / sorting you want and include this in your Query.

Post relevant Table Structure, the ordring required and what you need from
the "previous" Record in the current process.

--
HTH
Van T. Dinh
MVP (Access)





"Brad" wrote in message
...
Thanks for taking the time to read my question.

Just wondering if it is possible to make a formula in a query that refers

to
the previous row of data while still working in the current row of data.

Thanks,

Brad




 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
multiple docs, one data source kp Mailmerge 12 January 31st, 2005 04:41 PM
Data Source issues Philippe Database Design 1 October 10th, 2004 09:45 PM
Is this possible with Excel Chart? q582gmzhi Charts and Charting 1 September 8th, 2004 03:33 AM
SQL view of messed up action queries Kendra Running & Setting Up Queries 2 August 31st, 2004 09:53 PM
Mial merge data base problems Rachael Mailmerge 16 May 21st, 2004 06:22 PM


All times are GMT +1. The time now is 08:20 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.