showstuff11
13th March 2015, 07:22
Hi all!
i want to extract tcmcs050.seri in tdsls400.orno so that i can get the first and
last used series with date.
is this possible?
i think this is the easiest way to extract the first and last usage with date in any table that uses a specific number group/s
example:
Series |Description | First free numbers (or last used just -1)
MBD1 |BangS FG Bin Invoice |316
MBE1 |BangS FG Pil Invoice |3
MBG1 |BangS FG Pam Invoice |10
| FIRST USED
select TOP 1 tdsls400.odat , tdsls400.orno
from tdsls400
where tdsls400.orno(MBD100001) = "MBD1"
ASC
selectdo
First used= tdsls400.orno
First used date= tdsls400.odat
endselect
| LAST USED
select TOP 1 tdsls400.odat , tdsls400.orno
from tdsls400
where tdsls400.orno(MBD100316) = "MBD1"
DESC
selectdo
First used= tdsls400.orno
First used date= tdsls400.odat
endselect
the above report script is just an imagination of mine
i hope you understand what im saying... its been a week since i thought of this..
Thank all!
i want to extract tcmcs050.seri in tdsls400.orno so that i can get the first and
last used series with date.
is this possible?
i think this is the easiest way to extract the first and last usage with date in any table that uses a specific number group/s
example:
Series |Description | First free numbers (or last used just -1)
MBD1 |BangS FG Bin Invoice |316
MBE1 |BangS FG Pil Invoice |3
MBG1 |BangS FG Pam Invoice |10
| FIRST USED
select TOP 1 tdsls400.odat , tdsls400.orno
from tdsls400
where tdsls400.orno(MBD100001) = "MBD1"
ASC
selectdo
First used= tdsls400.orno
First used date= tdsls400.odat
endselect
| LAST USED
select TOP 1 tdsls400.odat , tdsls400.orno
from tdsls400
where tdsls400.orno(MBD100316) = "MBD1"
DESC
selectdo
First used= tdsls400.orno
First used date= tdsls400.odat
endselect
the above report script is just an imagination of mine
i hope you understand what im saying... its been a week since i thought of this..
Thank all!