Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access VBA
|
Access VBA Discuss using VBA for Access programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 30th, 2009, 02:06 PM
Authorized User
 
Join Date: Oct 2007
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
Default Finding a missing number in a series of numbers

I need a method in visual basic to find the first number missing in a series of number.
If the series was 1, 2, 3, 4, 6, 7, 9 I need it to return 5. The series run from 0000 to 9999. If there was no missing numbers I need it to return something which I could use to activate some other code.

Last edited by firefighter2045; July 30th, 2009 at 02:38 PM..
 
Old July 30th, 2009, 05:45 PM
Friend of Wrox
 
Join Date: Jun 2008
Posts: 1,649
Thanks: 3
Thanked 141 Times in 140 Posts
Default

And *where* does this series of numbers exist??? In an array? In records in the DB? Or what?
 
Old July 31st, 2009, 07:27 AM
Authorized User
 
Join Date: Oct 2007
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
Default

The data is located in an Access table





Similar Threads
Thread Thread Starter Forum Replies Last Post
How to number with letters & numbers JoshC XSLT 4 February 25th, 2009 12:11 PM
To find the missing numbers in a list of cells yogeshyl Excel VBA 2 December 13th, 2007 02:02 AM
Help: Finding smallest number kris.fan Infopath 0 September 9th, 2007 07:18 PM
number not finding in ascending order mankoti_mankoti2000 Access 1 January 19th, 2007 01:07 AM
How can i convert english numbers to arabic number zahidpervaiz Classic ASP Databases 0 December 30th, 2003 06:51 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.