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

Access database POS system conversion

9
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 2858
MMcCarthy
14,534 Expert Mod 8TB
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
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...
17
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...
27
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...
1
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...
2
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...
35
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 =...
8
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...
49
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,...
17
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...
4
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...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.