473,800 Members | 2,659 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Access database POS system conversion

9 New Member
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
Jul 6 '07 #1
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.

Expand|Select|Wrap|Line Numbers
  1. If IsNull(Me.ID) Then ' if this is a new record
  2. Dim tmpID As Long
  3.  
  4.     tmpID = DMax("[ID]", "[Table Name]") ' get the current max ID
  5.     Me.ID = tmpID + 1 ' create new ID
  6.  
  7. End If
  8.  
Jul 17 '07 #2

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

Similar topics

24
2726
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
17
2910
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...
27
3647
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...
1
1879
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...
2
2228
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
35
3227
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
8
3151
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...
49
3241
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
17
4423
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)...
4
2348
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...
0
9691
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, 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...
0
9551
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,...
0
10507
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, 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...
1
10255
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,...
0
10036
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 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...
0
9092
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, 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...
1
7582
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 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...
0
5473
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...
2
3765
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.