473,466 Members | 1,457 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How can I generate serial number with prefix from other field

6 New Member
I need a auto-number field (with formatting 00000)but with a prefix from other field.
What is the way to achieve this? Is it possible to do this at table level?

Thanks

Regards
Feb 2 '14 #1
1 1386
zmbd
5,501 Recognized Expert Moderator Expert
Ahmedamer,
Please do a search on this site, the method has been extensively covered many times.

1) 00000 is very limited in scope and range.
2) Will the numbers need to be reset
3) If you do not need to ensure sequential numbers nor to ever reset the value then one can use a field with the autonumber typecast (well it's actully a "long" type cast) and then in the query create a calculated field that concatenate the field of interest with the format([autonumberfield]).
4) If you need sequential and/or reseting type numbers
4a) use the dmax() in the numeric field to return the last number in the series. one can restrict further and use the query to filter down by other qualifications
4b) same concept as above; however, one would use VBA to set some checks to determine when to reset the counter.

In all of the above several threads cover this, search on my user name and serial and/or sequential numbers or "TheSmileyCoder", ADezii's user names... all of which will turn up threads with various code examples. (^_^)
Feb 2 '14 #2

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

Similar topics

15
by: tom | last post by:
Hi, How do I get the serial number of the harddisk in .NET? I want this to be the same number even if the user has reformatted, so I do not want the volume serial number. Thanx, t
3
by: Peter | last post by:
Dear all, Would you tell me how to solve the following two problems in an access file upon preparing report form: a) I have written an IIf function for a string field at the beginning of...
3
by: Jefe | last post by:
Hi group I'm trying to implement a console application which work just lie "Dir" instruction in MS-Dos prompt window so I need to display Volume Serial Number and also the free space, how can I...
4
by: PBI | last post by:
I would like to know if it is possible to read, through php, the Hard Disk Serial Number or other serial number (cpu, motherboard etc... ). Thanks.
5
by: Zaher Rabah | last post by:
hi, problem: I done a program , and want something in the computer like serial number for a hardware,or other things in the computer that make each computer different form other, to see it in...
8
by: egrill | last post by:
I have figured out how to extract the serial number of date field into the corresponding number of the week using the DatePart function. The would like to take the 5 and translated it identify the...
1
by: cmrhema | last post by:
A big hello to everyone I have dropped on a gridview on asp.net coding done is C# 2005. Here I display the records when a certain condition satisfies. eg. I want to display the details of all...
3
by: jeenajos | last post by:
Hi all, I need to insert a column in a table as sno but it should generated numbers from 1,2,3,.....It is similar to ms excel's auto number.Tel me a way to do it in SQL Express. Cheers Jeen
3
swarnalaxmi
by: swarnalaxmi | last post by:
to display serial number for rows in gridview
12
by: Ivan Popov | last post by:
I need to generate a unique serial number for each field in the table. The serial number shall consist of two letters and six numbers, for example AA123456. Someone can suggest how to do it in MS...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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,...
1
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
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.