HitechUser
Programmer
I've searched extensively for a solution for this but can't seem to find one I can get to work. Anyway... here's a sample of my data (Using Access 2000):
PARTID User Date XXXX XXXX
CV0001 1695 xx/xx/xxxx xxxx xxxx
CV0002 1695 xx/xx/xxxx xxxx xxxx
CV0003 1695 xx/xx/xxxx xxxx xxxx
DX0001 1696 xx/xx/xxxx xxxx xxxx
DX0002 1697 xx/xx/xxxx xxxx xxxx
FX0001 1697 xx/xx/xxxx xxxx xxxx
GX0002 1697 xx/xx/xxxx xxxx xxxx
GX0003 1697 xx/xx/xxxx xxxx xxxx
I need a query to select the last PARTID for each sequence. The query needs to look at the first two characters (substring). I need this to be able to create a report so show the next available PARTID.
The query should return....
PARTID User Date XXXX XXXX
CV0003 1695 xx/xx/xxxx xxxx xxxx
DX0002 1697 xx/xx/xxxx xxxx xxxx
FX0001 1697 xx/xx/xxxx xxxx xxxx
GX0003 1697 xx/xx/xxxx xxxx xxxx
These parts will be assigned differently so I am not able to auto assign (the PARTID) them or store the next available one in a table.
Thanks in advance.
PARTID User Date XXXX XXXX
CV0001 1695 xx/xx/xxxx xxxx xxxx
CV0002 1695 xx/xx/xxxx xxxx xxxx
CV0003 1695 xx/xx/xxxx xxxx xxxx
DX0001 1696 xx/xx/xxxx xxxx xxxx
DX0002 1697 xx/xx/xxxx xxxx xxxx
FX0001 1697 xx/xx/xxxx xxxx xxxx
GX0002 1697 xx/xx/xxxx xxxx xxxx
GX0003 1697 xx/xx/xxxx xxxx xxxx
I need a query to select the last PARTID for each sequence. The query needs to look at the first two characters (substring). I need this to be able to create a report so show the next available PARTID.
The query should return....
PARTID User Date XXXX XXXX
CV0003 1695 xx/xx/xxxx xxxx xxxx
DX0002 1697 xx/xx/xxxx xxxx xxxx
FX0001 1697 xx/xx/xxxx xxxx xxxx
GX0003 1697 xx/xx/xxxx xxxx xxxx
These parts will be assigned differently so I am not able to auto assign (the PARTID) them or store the next available one in a table.
Thanks in advance.