Gespierde velopompe
New Member
- Joined
- May 20, 2010
- Messages
- 45
Good afternoon,
I have a querry which I use to look up several locations where parts are stored in a warehouse. Now what I'd like to do, is when I give in certain partnumber in the querry, I'd like him to look up the previous and next location/record of the table I'm getting the data out.
I've tried to do so via Dlook up, but I get no output or an error message. Can you guys give me a litlle help on this? For example, when I enter partnumber 2233384, I would like to have the querry give me in the column of nextvalue "95210607R0", being the next row in the "total" column.
<TABLE border=1 cellSpacing=0 bgColor=#ffffff><CAPTION></CAPTION><THEAD><TR><TH bgColor=#c0c0c0 borderColor=#000000>LOC_ID_PART</TH></TR></THEAD><TBODY><TR vAlign=top><TD borderColor=#c0c0c0></TD></TR><TR vAlign=top><TD borderColor=#c0c0c0>1606386</TD></TR><TR vAlign=top><TD borderColor=#c0c0c0>2233384</TD></TR><TR vAlign=top><TD borderColor=#c0c0c0>2476502</TD></TR><TR vAlign=top><TD borderColor=#c0c0c0>2476502</TD></TR></TBODY><TFOOT></TFOOT></TABLE><TABLE border=1 cellSpacing=0 bgColor=#ffffff><CAPTION></CAPTION><THEAD><TR><TH bgColor=#c0c0c0 borderColor=#000000>total</TH></TR></THEAD><TBODY><TR vAlign=top><TD borderColor=#c0c0c0>44015897b0</TD></TR><TR vAlign=top><TD borderColor=#c0c0c0>58190008 </TD></TR><TR vAlign=top><TD borderColor=#c0c0c0>06159407R0</TD></TR><TR vAlign=top><TD borderColor=#c0c0c0>95210607R0</TD></TR><TR vAlign=top><TD borderColor=#c0c0c0>95210607R0</TD></TR></TBODY><TFOOT></TFOOT></TABLE>
<TABLE border=1 cellSpacing=0 bgColor=#ffffff><CAPTION></CAPTION><THEAD><TR><TH bgColor=#c0c0c0 borderColor=#000000>nextvalue</TH></TR></THEAD><TBODY><TR vAlign=top><TD borderColor=#c0c0c0>#Error</TD></TR><TR vAlign=top><TD borderColor=#c0c0c0>#Error</TD></TR><TR vAlign=top><TD borderColor=#c0c0c0>#Error</TD></TR><TR vAlign=top><TD borderColor=#c0c0c0>#Error</TD></TR><TR vAlign=top><TD borderColor=#c0c0c0>#Error</TD></TR></TBODY><TFOOT></TFOOT></TABLE>
I use below code, which I based on an example, but doesn't seem to work...
Thanks!
I have a querry which I use to look up several locations where parts are stored in a warehouse. Now what I'd like to do, is when I give in certain partnumber in the querry, I'd like him to look up the previous and next location/record of the table I'm getting the data out.
I've tried to do so via Dlook up, but I get no output or an error message. Can you guys give me a litlle help on this? For example, when I enter partnumber 2233384, I would like to have the querry give me in the column of nextvalue "95210607R0", being the next row in the "total" column.
<TABLE border=1 cellSpacing=0 bgColor=#ffffff><CAPTION></CAPTION><THEAD><TR><TH bgColor=#c0c0c0 borderColor=#000000>LOC_ID_PART</TH></TR></THEAD><TBODY><TR vAlign=top><TD borderColor=#c0c0c0></TD></TR><TR vAlign=top><TD borderColor=#c0c0c0>1606386</TD></TR><TR vAlign=top><TD borderColor=#c0c0c0>2233384</TD></TR><TR vAlign=top><TD borderColor=#c0c0c0>2476502</TD></TR><TR vAlign=top><TD borderColor=#c0c0c0>2476502</TD></TR></TBODY><TFOOT></TFOOT></TABLE><TABLE border=1 cellSpacing=0 bgColor=#ffffff><CAPTION></CAPTION><THEAD><TR><TH bgColor=#c0c0c0 borderColor=#000000>total</TH></TR></THEAD><TBODY><TR vAlign=top><TD borderColor=#c0c0c0>44015897b0</TD></TR><TR vAlign=top><TD borderColor=#c0c0c0>58190008 </TD></TR><TR vAlign=top><TD borderColor=#c0c0c0>06159407R0</TD></TR><TR vAlign=top><TD borderColor=#c0c0c0>95210607R0</TD></TR><TR vAlign=top><TD borderColor=#c0c0c0>95210607R0</TD></TR></TBODY><TFOOT></TFOOT></TABLE>
<TABLE border=1 cellSpacing=0 bgColor=#ffffff><CAPTION></CAPTION><THEAD><TR><TH bgColor=#c0c0c0 borderColor=#000000>nextvalue</TH></TR></THEAD><TBODY><TR vAlign=top><TD borderColor=#c0c0c0>#Error</TD></TR><TR vAlign=top><TD borderColor=#c0c0c0>#Error</TD></TR><TR vAlign=top><TD borderColor=#c0c0c0>#Error</TD></TR><TR vAlign=top><TD borderColor=#c0c0c0>#Error</TD></TR><TR vAlign=top><TD borderColor=#c0c0c0>#Error</TD></TR></TBODY><TFOOT></TFOOT></TABLE>
I use below code, which I based on an example, but doesn't seem to work...
Code:
nextvalue: DLookUp("[T_test2.total]","T_test2","[T_test2.total]=" & [T_test2.total]+1)
Thanks!