I put huge data on the program like 7 digit on number table. But it takes long time to execute or some time it crashes. Is there any other way to increment startno without depending on number field. And if any alpha numeric character added then how it will increment like A1230001, A1230002, A1230003... depending on field quantity. Thank yousee Query1.
Hello. My table doesn't execute any value if n value does not have 7 digit number. Because "start no" have 7 digit number. if I put 9999999 on n field the database size climbs to more then 100MB. I have made little changes on query. But it takes long time to execute. Also can I have A1230001, A1230002, A1230003... output. please have a look. Thank you.post a sample db of the table you want to work with.
also, you add Index to column 'n'.
my 'start no' will increment depending on noofleaves like 9432100, 9432101,..94321004, then next row. If my 'start no' start with A then output will be like A9432100, A9432101,..A94321004. then next row. Thank youstill no idea what you are trying to achieve. Yo want a start number of 9432100 but also want A1230001. I'll ask a final time - provide an example of what you actually require
e.g.
customer....starto........noOfLeaves....require
1....................9432100...5..........................????
1....................9432100...5..........................????
1....................9432100...5..........................????
1....................9432100...5..........................????
1....................9432100...5..........................????
2....................5432110...3..........................????
2....................5432110...3..........................????
2....................5432110...3..........................????
its a simple request - just fill in the ????
best guess - note I have changed startno to text (because you have preceding zeros and a potential "A") and removed formatting (which you should not use in tables). See query 2
its a simple request - just fill in the ????
best guess - note I have changed startno to text (because you have preceding zeros and a potential "A") and removed formatting (which you should not use in tables). See query 2
My sequence is 9432100, 9432101.. from 'start no' and count till quantity of 'noofleaves'. Total 7 digit is count. If my 'start no' is 9432105 then out put will be 9432105, 9432106, 9432107... depending on quantity of 'noofleaves'. Sometime alfanumeric value may come like CC9432105 then output will be CC9432105, CC9432106, CC9432107...I presume you are trying to increment a number in an existing sequence. How many characters do you have in the search sequence.
eg, Say you have 9432100, 9432101,..94321004
and you add leaves until you get to 94321009, and then add 94321010
What happens now?
You now have two sequences of numbers, one that starts - 9432100- and one that starts 9432101-
If this is really only one sequence, then you need to know what the sequence is - is it 9432100, 9432101, or even just 9432-
You could split this into two
Have a prefix 9432, and than have a sequential number incrementing from 001, to 999.
Dear CJ please don't take it personally. I was working on your post. Your incremented value does not create from 'startno'. its just added a number which is not my requirement. Mr. arnelgp provide me the exact I wanted but my table is getting heavier.OK - well, no response on my suggestion and still just a description of what is required, not an example, so I'm going to drop out. Good luck with your project but we are 16 posts in still with no clear idea of what is actually required