I have a database that was created in Access 97 converted to Access 2000, and then to Access 2003 that I created for my Store as a POS database system.
The problem is I originally created the ID field (IE Purchaser Table otherwise known as the customer ID) as a text field.
I was going to have the ID be part of the name. But that did not work well after the first 150 records or so and I changed the previous records to numbers 1-150 and went from there but I did not change the field to Numbers its still text. What I want to do is have it do auto numbers.
But I am afraid it will change or delete the number that is in that text field now. Plus the number sequence has become something like 12 off from the record number count on the bottom of the form. It is a hassle putting in the number for the employees using the database (to count from form # plus 12). So I want to be able to have it AUTO populate the customer ID for me as a number.
Can someone help me walk though the best way to make this transition without losing anything in the database now. I currently have about 3000 plus names in the database now.
Now that I think about it is similar to the structure of Northwind Traders database format by means of the Customer, order layout but with a ton more things for function etc.
Sorry for being long but I wanted to explain it as best as possible. Hopefully this makes sense and since I did not find anything anywhere else that talks about it in any other form I thought I would post it here.
Thank you in advance for your help
1 2918 MMcCarthy 14,534
Recognized Expert Moderator MVP
I have a database that was created in Access 97 converted to Access 2000, and then to Access 2003 that I created for my Store as a POS database system.
The problem is I originally created the ID field (IE Purchaser Table otherwise known as the customer ID) as a text field.
I was going to have the ID be part of the name. But that did not work well after the first 150 records or so and I changed the previous records to numbers 1-150 and went from there but I did not change the field to Numbers its still text. What I want to do is have it do auto numbers.
But I am afraid it will change or delete the number that is in that text field now. Plus the number sequence has become something like 12 off from the record number count on the bottom of the form. It is a hassle putting in the number for the employees using the database (to count from form # plus 12). So I want to be able to have it AUTO populate the customer ID for me as a number.
Using autonumber will cause all the problems you think it will
Can someone help me walk though the best way to make this transition without losing anything in the database now. I currently have about 3000 plus names in the database now.
Now that I think about it is similar to the structure of Northwind Traders database format by means of the Customer, order layout but with a ton more things for function etc.
Sorry for being long but I wanted to explain it as best as possible. Hopefully this makes sense and since I did not find anything anywhere else that talks about it in any other form I thought I would post it here.
Thank you in advance for your help
You will firstly have to change the field datatype to number (and any foreign keys relating to this field will also have to be changed.
You will then have to create some code, probably in the form current event of your data entry form.
First check that it is a new record. -
If IsNull(Me.ID) Then ' if this is a new record
-
Dim tmpID As Long
-
-
tmpID = DMax("[ID]", "[Table Name]") ' get the current max ID
-
Me.ID = tmpID + 1 ' create new ID
-
-
End If
-
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: jason |
last post by:
Hi Ray...a while ago you explained an elegant solution to enable me to
CREATE and EDIT existing tables and queries inside my online access 2000
database.... could you provide refresher links on this or possibly some
starter code?
I am just so sick of the syncronization problems that come into play when
you adjust underlying tables and queries offline and then have to overwrite
the live database?
Many thanks Jason
|
by: chicha |
last post by:
Hey people,
I have to convert MS Access 2000 database into mysql database, the whole
thing being part of this project I'm doing for one of my faculty
classes. My professor somehow presumed I knew db's and gave me long list
of things to do with that particular database, first thing being that
particular conversion. Truth is that I don't know a first thing about
db's, let alone using mysql... I downloaded mysql form www.mysql.com and...
|
by: Chuck Grimsby |
last post by:
(Repost, due to lack of submissions...)
The Microsoft Access Product Group (the people who build Microsoft
Access) want your help!
One of the main things we're working on for the near future is a
conversion tool to take Microsoft Access 97 databases (primarily, but
also Microsoft Access 2000 or 2002/XP databases) up to Microsoft
Office Access 2003. For us to do this, we need sample databases from
*you*, our customers, to ensure a...
|
by: sparks |
last post by:
I have done a LOT of databases in access 97 but I am new to access
2000.
We are S L O W L Y converting over.
Yesterday I had a 97 database that I had to run the converter to 2000
and everything works fine. I thought this is not tooo bad so far.
BUT everyone else in the co that got a copy and converted it on their
system had big problems.
First when they ran the database a vb code view window was open in the
background.
Second some of...
|
by: Maurice |
last post by:
Folks
once again I look forward to your invaluable assistance.
When converting an Access 2002 mdb back to Access 1997 using the Access 2002
inbuilt tools I receive the following error message "Some errors happened
during the conversion. No converted database was generated". This message is
not of great assistance to me in sorting out the error!!
I have not been able to find any helpful support on where to start looking
| |
by: deko |
last post by:
Do I get more scalability if I split my database? The way I calculate
things now, I'll be lucky to get 100,000 records in my Access 2003 mdb.
Here some math:
Max mdb/mde size = 2000 x 1024 = 2,048,000k
Let's say on average each record in the database consumes 15k
2,048,000/15 = 136,533 records
|
by: John Baker |
last post by:
Hi:
I am URGENTLY in need of some book or web site OR tool that will help me integrate a
relatively simple access application into a web page or pages. This is a time recording
system (by project), and I would be more than wiling to pull the updated database down
from the Host using FTP on a monthly basis. Its just that I need to understand how to set
it up on the web site itself. The Host supports SQL.
Any direction you can give would...
|
by: Mell via AccessMonster.com |
last post by:
I created databases on Access 2003 and I want to deploy them to users. My
code was also done using 2003.
If they have Ms Access 2000 or higher, will they be able to use these dbs
with all code, etc?
Please explain
--
Message posted via http://www.accessmonster.com
|
by: Mell via AccessMonster.com |
last post by:
Is there a way to find out where an application was created from?
i.e. - work or home
i.e. - if application sits on a (work) server/network, the IT people know the
application is sitting there, but is there a way they can find out if that
application was put there from a CD or email or created at work?
Hint: It's not on a client/server database, just native jet database mdb
created on Access 2003 (default 2000)...
|
by: ThePhenix |
last post by:
Hi everybody,
I have recently been doing a conversion for my boss for a access 2000 database (both front and backend) to a MSSQL backend.
I finished the conversion today (as quite a lot of the code / queries ran slow due to access running the queries locally rather than on the server). And tested it on my and my boss's machine with no problems so he gave the go ahead to update everybody to our new mssql 2000 backend with the modified...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
| |
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |