473,750 Members | 2,186 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Access 2003 Autofill Numbering

4 New Member
Hello,

I am new to Access, I'm trying to make the switch from Excel to Access as the databases I'm working with have over 200,000 records.

In excel, when you want a field to autofill numbering, it's easy. You type in 1,2,3,4 etc. highlight this and drag or double click and magic the rest of the records are filled in for this field with the continued counting.

How the $#^%&$%#@ does one do this in Access. I have 2003.

Please Help!

And thanks!

Jenny
Sep 13 '07 #1
8 2755
mlcampeau
296 Recognized Expert Contributor
You're going to have to provide more information. What are you trying to number? Are you trying to do this on a report?
Sep 13 '07 #2
JConsulting
603 Recognized Expert Contributor
Hello,

I am new to Access, I'm trying to make the switch from Excel to Access as the databases I'm working with have over 200,000 records.

In excel, when you want a field to autofill numbering, it's easy. You type in 1,2,3,4 etc. highlight this and drag or double click and magic the rest of the records are filled in for this field with the continued counting.

How the $#^%&$%#@ does one do this in Access. I have 2003.

Please Help!

And thanks!

Jenny
Hi Jenny,

If you're trying to fill down records in a table, then you have to create an update query to do that. Access doesn't play like Excel. If you're trying to create an index of autonumbers, then create a field in your table for that.
A little more info might help us help you create a query if that's what's needed.
J
Sep 13 '07 #3
MGrowneyARSI
90 New Member
You could use a loop in the VB Code
"I am new to Access, I'm trying to make the switch from Excel to Access as the databases I'm working with have over 200,000 records."
Excel is a spredsheet Glad to hear you switched to Access you'll love it
Dim rec
Dim mysql$


mysql$ = "SELECT name of field FROM table name"
Set rec = CurrentDb.OpenR ecordset(mysql$ , dbOpenDynaset)

rec. move first
do while not rec.eof
rec=rec+1
rec.movenext
loop
Sep 14 '07 #4
jcoleshill
4 New Member
Thanks so muchly. Yes, I'm excited about this switch, but so unfortunate we couldn't learn this matrix styles! I have heard much about the beauty of Access. Last night I went through about 8 lessons on the training website. All the ones about queries etc. The VBE is something I'm excited about, but honestly I'm not quite there. I will play with what you have written me to see if I can get this to work.

Thanks again.





You could use a loop in the VB Code
"I am new to Access, I'm trying to make the switch from Excel to Access as the databases I'm working with have over 200,000 records."
Excel is a spredsheet Glad to hear you switched to Access you'll love it
Dim rec
Dim mysql$


mysql$ = "SELECT name of field FROM table name"
Set rec = CurrentDb.OpenR ecordset(mysql$ , dbOpenDynaset)

rec. move first
do while not rec.eof
rec=rec+1
rec.movenext
loop
Sep 14 '07 #5
jcoleshill
4 New Member
Thanks for the replies!

I am in need of creating a field that is numbered from 1 through to the end of my records ~60,000, just so I can have a unique ID associated with each record I can bring along and be able to pick up info from original database through the unique ID.

I will see if I can get the code someone so graciously supplied on a reply to work. I have only gotten as far as the queries and expressions in the training programs on the website!!!

Thanks All,
J
Sep 14 '07 #6
JConsulting
603 Recognized Expert Contributor
Thanks for the replies!

I am in need of creating a field that is numbered from 1 through to the end of my records ~60,000, just so I can have a unique ID associated with each record I can bring along and be able to pick up info from original database through the unique ID.

I will see if I can get the code someone so graciously supplied on a reply to work. I have only gotten as far as the queries and expressions in the training programs on the website!!!

Thanks All,
J
You don't need code for that. if you already have the data in a table, just go to design view and insert an ID field. Make it an Autonumber type then save it. When you open the table, it will automatically create your unique id numbers.
J
Sep 14 '07 #7
jcoleshill
4 New Member
Solved! Thank you so much. I knew it had to be ridiculously easy!!

You don't need code for that. if you already have the data in a table, just go to design view and insert an ID field. Make it an Autonumber type then save it. When you open the table, it will automatically create your unique id numbers.
J
Sep 14 '07 #8
JConsulting
603 Recognized Expert Contributor
Solved! Thank you so much. I knew it had to be ridiculously easy!!
You're very welcome...welco me to the Scripts!
J
Sep 14 '07 #9

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

Similar topics

1
18531
by: shortbackandsides.no | last post by:
I'm having a lot of difficulty trying to persuade the Google toolbar autofill to act consistently, for example ======================= <html><head> <title>autofill test</title> </head><body> <form method="POST" action=""> 1 email <input type="text" name="email"><br> 2 name <input type="text" name="name"> <br>
3
325
by: Rob R. Ainscough | last post by:
I'm looking into a good Text Editor (either stand alone or can integrate into VS 2003) Needs to have the following: 1. Powerful Search & replace 2. column editing 3. macro recording & language Nice to have: 1. VB.NET syntax highlight and autofill
1
3402
by: jdph40 | last post by:
I have a table with fields EmpID (PK), EmployeeNumber, DateTaken, and YearTaken to track the dates an employee takes for vacation. I need a way to distinguish between years because the data will be from multiple years (i.e., 2003, 2004). In my query, I set a parameter ("Enter year..."), so in my reports and on forms I can see only one year at a time. My problem is that in my form, I don't want the user to have to enter the date...
6
4751
by: Peter Frost | last post by:
Please help I don't know if this is possible but what I would really like to do is to use On Error Goto to capture the code that is being executed when an error occurs. Any help would be much appreciated. Thanks in advance
2
2709
by: Andre Ranieri | last post by:
I'm retouching our corporate web site that, among other things, allows customers to log in and pay their invoices online. I noticed that on the checkout page, the credit card number textbox autofills with past entries for that textbox. My development workstation has the Google Toolbar installed; I'm not sure whether the autofill functionality is native to the browser or coming from the Google Toolbar. In either case, is there any way...
49
4354
by: Allen Browne | last post by:
If you are looking for opinon on what's useful in Access 2007, there's a new article at: http://allenbrowne.com/Access2007.html Covers what's good (useful features), what's mixed (good and bad), what's gone (features removed), what's fixed (old issues solved), what's broken (new bugs), configuration, compatibility, should you buy, and links. It is opinion, so you may disagree, but hopefully it's an informative summary.
2
1802
by: Emmi | last post by:
I have a MS Access 2003 database that I have inherited and has been in service for about 2 years now. Suddenly, we are getting a vba runtime error "6". I have done some research and what I have found is that this might have to do with the field being an interger field, and can only be numbered up to 32000 or so. Currently the id for this field is at 32767. However in the table the field is coded as a long interger. The vba code that is...
1
1590
by: seawolf | last post by:
Is there a way to create a numbering for the Details in an Access 2003 Report. For instance, if a report has 12 records that make up the Details in a report, can these be numbered, i.e., 1, 2, 3, 4, etc., for each Detail record.
3
2688
by: dekker.erik1 | last post by:
hello, I would like to know if there is a way in ms access 2003 to add consequtive numbers to a new column to 'count' the records. This count should start over by every by variable. for example: I have a table: field1 field2 field3 1 AA BB
0
8999
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
8836
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
9575
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...
0
9394
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9338
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
9256
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...
1
6803
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
6080
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4885
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.