if i am selecting ford 5 times with todays date..the sequence number should be generate 01,02,03,04,05....
then i m selecting
if i m selecting
Can any one tell me a logic.....
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Chasse CourtPosted Jun 27, 2013, 10:17 PM
By doing this you will end up with as an example.
By doing this it may not actually necessary to have the sequence number on the end of your data as the Date/Time stamp is unique and orderable so you can select a sequence for the make, sub select for the correct date and then order by the time in ascending order to get a perfectly ordered list without a sequence number on the end.
VulpesPosted May 30, 2013, 11:08 AM
On what line does it occur?
selva kumarPosted May 30, 2013, 6:20 AM
Object reference not set to an instance of an object.
how to clear..
VulpesPosted May 30, 2013, 5:14 AM
selva kumarPosted May 30, 2013, 3:29 AM
Rohit KapdiPosted May 30, 2013, 3:23 AM
selva kumarPosted May 30, 2013, 2:34 AM
Pankaj PandeyPosted May 30, 2013, 2:11 AM
I am just giving logic, you have to write code .if helped then mark as answered.
create table with following detail
date item sequence
use given query
select top(1) * from table where date="your data" and item="your item" order by sqquence desc
read it in front end and check..
if(table.rows.count>0)
{
sequence=sequence+1;
}
else
{
sequence=1;
}
and save date,item and sequence into table.