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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Pankaj PandeyRank #642 · 3.7K reputationPosted May 29, 2013, 10:11 PM EDT
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.
selva kumarRank #2,987 · 483 reputationPosted May 29, 2013, 10:34 PM EDT
Rohit Kapdi19 reputationPosted May 29, 2013, 11:23 PM EDT
selva kumarRank #2,987 · 483 reputationPosted May 29, 2013, 11:29 PM EDT
VulpesRank #55 · 29.2K reputationPosted May 30, 2013, 1:14 AM EDT
selva kumarRank #2,987 · 483 reputationPosted May 30, 2013, 2:20 AM EDT
Object reference not set to an instance of an object.
how to clear..
VulpesRank #55 · 29.2K reputationPosted May 30, 2013, 7:08 AM EDT
On what line does it occur?
Chasse Court5 reputationPosted Jun 27, 2013, 6:17 PM EDT
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.