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  

Next item in line



 
 
Thread Tools Display Modes
  #1  
Old July 8th, 2008, 11:27 AM posted to microsoft.public.access.queries
OEB
external usenet poster
 
Posts: 20
Default Next item in line

I am not sure how to really explain this, but here is what I need. I have a
list of items that are in chronological order listing the stages a project
goes through. I need to create a query that shows the next item in the
sequence.

I tried to add a 1 to the id number, but obviously that only gives me a
number. How to I get the stage, or level, assigned to that number in the
table?

I appreciate any help you can give me.
  #2  
Old July 8th, 2008, 11:33 AM posted to microsoft.public.access.queries
Allen Browne
external usenet poster
 
Posts: 11,706
Default Next item in line

Use a subquery to get the value from another record in the same table.

Details:
http://allenbrowne.com/subquery-01.html#AnotherRecord

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"OEB" wrote in message
...
I am not sure how to really explain this, but here is what I need. I have
a
list of items that are in chronological order listing the stages a project
goes through. I need to create a query that shows the next item in the
sequence.

I tried to add a 1 to the id number, but obviously that only gives me a
number. How to I get the stage, or level, assigned to that number in the
table?

I appreciate any help you can give me.


  #3  
Old July 8th, 2008, 03:15 PM posted to microsoft.public.access.queries
OEB
external usenet poster
 
Posts: 20
Default Next item in line

Thanks. I am not very clever at this and I have some questions. First, is
this another query altogether? Second I am using the Query design, not SQL
view, so where do I put that example information? Sorry to be so stupid : )

"Allen Browne" wrote:

Use a subquery to get the value from another record in the same table.

Details:
http://allenbrowne.com/subquery-01.html#AnotherRecord

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"OEB" wrote in message
...
I am not sure how to really explain this, but here is what I need. I have
a
list of items that are in chronological order listing the stages a project
goes through. I need to create a query that shows the next item in the
sequence.

I tried to add a 1 to the id number, but obviously that only gives me a
number. How to I get the stage, or level, assigned to that number in the
table?

I appreciate any help you can give me.



  #4  
Old July 8th, 2008, 03:20 PM posted to microsoft.public.access.queries
Allen Browne
external usenet poster
 
Posts: 11,706
Default Next item in line

Replies in-line.

"OEB" wrote in message
...
First, is this another query altogether?


No: it is part of the same query, not another one.

Second I am using the Query design, not SQL view,
so where do I put that example information?


Choose SQL View in the View menu.
Put the information into the SQL statement.


"Allen Browne" wrote:

Use a subquery to get the value from another record in the same table.

Details:
http://allenbrowne.com/subquery-01.html#AnotherRecord

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

 




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


All times are GMT +1. The time now is 12:13 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.