473,396 Members | 1,860 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Starting number

Hi all,
I created a form for delivery challan in ms-access in 2007-08 and now when i copied same format for current year it is starting with same old number. I want to start it from number :1 for current financial year.

i need your suggestions
Jun 23 '08 #1
7 1704
7 of 9
23
I think I may be able to help you but first can you explain your problem more clearly.

What number are you talking about?
Where is this number coming from?
etc...
Jun 23 '08 #2
NeoPa
32,556 Expert Mod 16PB
...You may also want to consider what else makes up the Primary Key of your table.

These are details which can make the problem so much easier to answer. Well, to put it more accurately, the absence of these details makes a relatively simple question much harder.
Jun 25 '08 #3
i told a form for delivery challan, in that i am asking about delivery challan number (i took it as autonum) / for current year i want to start it from no:1 instead of continuing number (eg. 131)
Jun 27 '08 #4
NeoPa
32,556 Expert Mod 16PB
This seems to be a simple repetition of your original post and provides no more information.

That's not an offense, but please don't expect too much help if you can't even provide the basics that you've been asked for.

If you have a problem understanding what's being said, please let us know.
Jun 27 '08 #5
I created a form for delivery challan in ms-access in 2007-08 with fields like s.no (autonumber), item description (text), quntity (number), consignee address etc. Now when i copied same format for current year the S.NO. field (autonum field) is continuing the old sequence from the last fin. year but I want to start it from the beginning i.e. from No.1 for current financial year.

is this clear sir
Jul 11 '08 #6
7 of 9
23
I created a form for delivery challan in ms-access in 2007-08 with fields like s.no (autonumber), item description (text), quntity (number), consignee address etc. Now when i copied same format for current year the S.NO. field (autonum field) is continuing the old sequence from the last fin. year but I want to start it from the beginning i.e. from No.1 for current financial year.

is this clear sir

WOW!

After reading this a few times I think I get what you are trying to ask. Did you simply copy and paste the table then erase all of the old records and attempt to add data? If so that is your problem. If you create a table and assign a field (S.NO in your case) as an AutoNumber and simply copy and paste the table the autoNumber will continue even if you delete all of the records in the "new" table. When you copy make sure that you select "Structure only" before you paste it this will cause the AutoNumber to reset. Hopefully that solves your problem
Jul 11 '08 #7
NeoPa
32,556 Expert Mod 16PB
I'm afraid that it's not much clearer no.

However, I can say that if S.No is an AutoNumber field then you will not be able to control the sequence. That's what the "Auto" part of AutoNumber means. Also, being a unique reference, starting the number again each year would cause the same numbers to be reused (which would fail of course).

You need to consider what you're trying to achieve, then design a database that supports that. You're the only who knows anything about that so we can't help there.

It IS possible to have a table where numbers are created which count sequentially for each year - but only if a prefix is used or the actual Primary Key is made up of a year indicator AS WELL AS a sequential number.

To give any help with that though, we would need a much more clearly specified question.
Jul 11 '08 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Adam | last post by:
Eh, probably not the most specific subject line... But, I've got a number of fields in which I need to do things like remove the first 4 characters, or remove the last 3. Such as: ...
16
by: Jim Langston | last post by:
I know that functions starting with an underscore, or two underscores, are reserved by the compiler/c++ and should not be used by the user and may cause undefined behavior. My question is, how...
0
by: jen4022599 | last post by:
Is there a way to put in a number greater than 9 into a program as a starting value and your program to take the digits indivdually? Please help Thanks!!
4
by: vikerneso | last post by:
I'm trying to write a program that would take a text file and searched for every word starting with a user specified letter. i.e. user inputs 'a' the program searches through the text file and...
1
by: derik | last post by:
I hav a text file with N number of lines . i am able to read the file till the end .. in between many lines are starting with #. these lines starting with # are to be omitted. pleast help me in...
1
by: mikelujan | last post by:
Hi, Our application starts an external application using System.Diagnostics.Process class and the Start() method, as per code snippet below. This application run as a Windows service, and must...
7
by: PaulaCM | last post by:
Hello Again Byters (hmmm... that sounded better in my head!)! Question on Primary Keys / Auto numbering. I want to make sure that each record has its own individual ID (hence primary key) but,...
17
luvgis
by: luvgis | last post by:
I'm trying to find a simple way to update a column with sequential numbers without using a recordset. Here is the catch, each agency has a range such as Anaheim - 6,000 range Buena Park - 7,000...
11
by: ZaphodBBB | last post by:
Hi I have a table that has as its Primary Key the Auto-Increment Field: Equipment_Number. In M.S. Access is there any way to define a starting number for the field? OR another way in which...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.