M
mivan002
I have a table with lots of columns, but most important are ID, drawingno,
and revision. I also have a query and this is where I'm trying to get the
latest revision, but when I tell it Last for the revision it will not give me
last until I tell the drawingno to be last as well. Unfortunately, I need
some of the drawingno's that it's not showing.
Here are examples of the drawingno's that I need to stay, but with the
'Last' the query will only give me the last one:
Ex. A123-XXX (with a "-" in the revision column)
Ex. A123-YYY (with a "-" in the revision column)
Ex. A123-ZZZ (with a "-" in the revision column)
The below are examples of the drawingno's that have revisions in the
drawingno column as well as in the revisions column. These are what I need
to have show only last:
Ex. A123-XXX (with a "-" in the revision column)
Ex. A123-XXXA (with a "A" in the revision column)
Ex. A123-XXXB (with a "B" in the revision column) and etc.
To sum up: my current query has Last for drawingno and last for revision and
group on ID, but this gives me all the Last revisions and also gives the Last
drawing numbers. Which is okay for Ex. 2 but not for Ex. 1 - only want
latest drawingno on those that have revisions, but those drawingno's that
don't have revisions to them I need them to stay.
Sorry so long, but wanted to make sure I explained everything.
Thank you in advance.
and revision. I also have a query and this is where I'm trying to get the
latest revision, but when I tell it Last for the revision it will not give me
last until I tell the drawingno to be last as well. Unfortunately, I need
some of the drawingno's that it's not showing.
Here are examples of the drawingno's that I need to stay, but with the
'Last' the query will only give me the last one:
Ex. A123-XXX (with a "-" in the revision column)
Ex. A123-YYY (with a "-" in the revision column)
Ex. A123-ZZZ (with a "-" in the revision column)
The below are examples of the drawingno's that have revisions in the
drawingno column as well as in the revisions column. These are what I need
to have show only last:
Ex. A123-XXX (with a "-" in the revision column)
Ex. A123-XXXA (with a "A" in the revision column)
Ex. A123-XXXB (with a "B" in the revision column) and etc.
To sum up: my current query has Last for drawingno and last for revision and
group on ID, but this gives me all the Last revisions and also gives the Last
drawing numbers. Which is okay for Ex. 2 but not for Ex. 1 - only want
latest drawingno on those that have revisions, but those drawingno's that
don't have revisions to them I need them to stay.
Sorry so long, but wanted to make sure I explained everything.
Thank you in advance.