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

progressive number

I have a table with a lot of fields. One is a numeric field.
How can I introduce in these field a progressive number.
I have to change at times the start number.
example:
55,56,57,58,59,60,134,135,136,137
Nov 12 '05 #1
1 3658
Carlo wrote:
I have a table with a lot of fields. One is a numeric field.
How can I introduce in these field a progressive number.
I have to change at times the start number.
example:
55,56,57,58,59,60,134,135,136,137


Create a table, add a numeric field. Maybe call the table LastAction.
In it you can store the last time you did an update, last time a report
was run, etc. Now you have a field to hold an incrementer.

'update your field with a new progressive. I would do this when the
record is SAVED, otherwise you can end up with some skips unless when
you undo you decrement the number
Sub UpdateProgressive()
Dim rst As DAO.Recordset
set rst = Currentdb.OpenRecordset("LastAction")
rst.Edit
rst!Progressive = rst!Progressive + 1
rst.Update
Me.Progressive = rst!Progressive
rst.Close
set rst = Nothing
End Sub

'pass to this sum the new progressive number
Sub UpdateProgressive(lngNum As Long)
Dim rst As DAO.Recordset
set rst = Currentdb.OpenRecordset("LastAction")
rst.Edit
rst!Progressive = lngNum
rst.Update
rst.Close
set rst = Nothing
End Sub

Nov 12 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Dianne Combs | last post by:
Dear Online Reader or Editor ... If you could ... please take a look at our new online treeless edition newspapers, The Northeast Progressive Advocate-Journal and our sister newspaper the San...
0
by: Mattia | last post by:
Consider two tables: book(id, title, date_written , author_id) author(id, name) the date_written field is a DATE field ad rappresents the date the book was written. i would like to make a...
5
by: Pecos Bill | last post by:
Hi to everybody, I'd like to know how to extract a progressive number in a select. Example.. Select * from employers Name Surname Position Age Hire Date Progressive...
3
by: Girish | last post by:
Hi All, I have written a component(ATL COM) that wraps Xerces C++ parser. I am firing necessary events for each of the notifications that I have handled for the Content and Error handler. The...
1
by: Chris Jakeman | last post by:
Hi, Internet Explorer doesn't load JPGs progressively. I need to show a large graphic (100KB) on dial-up lines, so I searched for a way to emulate progressive loading of images. Couldn't find...
0
by: Ryan Cooper | last post by:
Hello .NET Gurus! I have been posting messages all over the .NET forums to no avail, so I thought I'd give this newsgroup a shot as well. I am trying to figure out how to detect if a...
0
by: nhacnhac | last post by:
Hi Guys does anyone knows if the a JPEG file saved as JFIF version 1.02 is always considered progressive? I need to create a program in C# to open JPEG files and upload just the non-progressive...
3
by: mukesh | last post by:
I have designed a form in ms access to show the account of firms. In the total column i need a progressive total of one or more column of this form. what to do please thanks in advance
5
by: byteit101 | last post by:
I am working a an Image processing program, and I want to save my jpegs as being progressive (blurry to sharp instead of line by line while it loads). this does not work howerver: ImageCodecInfo...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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...
0
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...
0
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,...
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.