Wrox Programmer Forums
|
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access 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 August 19th, 2004, 08:30 AM
Authorized User
 
Join Date: Feb 2004
Posts: 56
Thanks: 0
Thanked 0 Times in 0 Posts
Default Auto number

Hello everyone
i have a form with a subform. in my form i have number which i want to be as a auto number but i dont want to use autonumber function.
The way i want this is to add a number every time when you add a new record but also be able to edit that the reason is because it start from 1000 so it will be something like 1000+1 and etc

Can any one tell me how to do this please?

Best Regards,
Hamed Gholamian
 
Old August 20th, 2004, 11:24 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 129
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Hamed,

Does something like the following help you?

=IIf(IsNull(DMax("[EntryNumber]","qryInputDataActive")+1),1,DMax("[EntryNumber]","qryInputDataActive")+1)



Clive Astley





Similar Threads
Thread Thread Starter Forum Replies Last Post
Auto Number query again Brendan Bartley Access 4 August 26th, 2006 06:09 AM
problem with Auto Number Brendan Bartley Access 6 August 14th, 2006 10:13 AM
auto generate an number utarian Access 2 March 28th, 2005 02:24 AM
[b]Auto Number[/b] vanjamier Classic ASP Databases 1 November 18th, 2004 03:44 AM
Auto number Sheri Dreamweaver (all versions) 0 December 22nd, 2003 03:36 PM





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