473,401 Members | 2,146 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,401 software developers and data experts.

Help with MS Access Database

Hi Again,

I must say i am Happy to be a part of "THE Scripts!"

Once again I need 2 know. Is it possible to create a field in a table of a Access Database titled Customer ID that will auto number for example "5th customer for 2007" This is how i want it to display 005/07, so that will be thier "customer identification"

I hope who ever responds, will understand exactly what i am asking.

Yours Replies will be greatly appreciated
need2know
Nov 3 '07 #1
1 1106
ADezii
8,834 Expert 8TB
Hi Again,

I must say i am Happy to be a part of "THE Scripts!"

Once again I need 2 know. Is it possible to create a field in a table of a Access Database titled Customer ID that will auto number for example "5th customer for 2007" This is how i want it to display 005/07, so that will be thier "customer identification"

I hope who ever responds, will understand exactly what i am asking.

Yours Replies will be greatly appreciated
need2know
It is possible to generate this value, but it won't be an AutoNumber, or even a Number at all, and for now you'll manually have to Reset this value for the 1st Customer of a New Year. The value to which you are referring must be Text, and the next value in sequence can be generated by (assuming Table Name is tbtTest);
Expand|Select|Wrap|Line Numbers
  1. Format$(Val(DLast("[Customer ID]", "tblTest"))+1, "000") & "/" & Format$(Now(), "yy")
  2.  
NOTE: If the last [Customer ID] for 2007 was 023/07, the next autogenerated ID would be 024/07.
Nov 4 '07 #2

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

Similar topics

3
by: cooldv | last post by:
i am running a website on Windows 2000 server with ASP 3 webpages and Access 2000 database. (with a hosting company) traffic is slow at this time but expect to grow. lately i have been reading...
3
by: Mitchell Thomas | last post by:
I hope someone out there can solve my mysterious problem. I have tried everything imaginable, even paid $35 to Microsoft to help me, but they were not able to figure out this problem: Here is the...
5
by: Bec | last post by:
I'm in desperate need of your help.. I need to build an access database and have NO idea how to do this.. Not even where to start.. It IS for school, and am not asking anyone to do my...
2
by: grinder332518 | last post by:
My table is called "table A". There is a date field in this table called "1st Date Issued". My Form accesses this table, and I would like to write an expression which looks at all the entries in...
1
by: Orbie | last post by:
Hi All, I'm new to VB.NET and i'm looking for some help with my Windows Form. I need to check if a Commodity entered into (TextBox1.Text) already exists on my table before i insert it. I'm having...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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,...
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...

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.