Wrox Programmer Forums
|
ASP Forms As of Oct 5, 2005, this forum is now locked. Please use "Classic ASP beginner" at http://p2p.wrox.com/forum.asp?FORUM_ID=54 or "Classic ASP Professional" http://p2p.wrox.com/forum.asp?FORUM_ID=56 instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP Forms 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 March 22nd, 2004, 03:26 PM
Registered User
 
Join Date: Mar 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to NomAnor
Default Sequential Numbers on Submit

Hello, i have a form running that does several things after being submitted, currently it writes the output to the screen so the users can see what they submited, it then adds a record to a database file and hopefully very soon it will also be saving the output to a .txt file (still working out the kinks of that one). Anyhow i was looking to add a Work Order number to each record as they are submited. I would obviously want to start at whatever number, say 100, and have that be put into the database for the first record, then as future work orders are submited have them go up sequentially, 101, 102, etc. The Database i am working with is a Visual FoxPro Database if that makes any difference, i just have not been able to find anything to even get me started on this. Thanks for any help/ideas.
 
Old March 22nd, 2004, 04:45 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 440
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Well, what I do in these situations is to make an SQL query in the database and order them according to the index number (also through the SQL statement). After this you should simply move to the last record and add one to the index number found here!

There most likely several other options, but this is working for me in most cases. I think you can use the automatic numbering from inside the database as well, but I do not know how.

Hope it helps!

Jacob.






Similar Threads
Thread Thread Starter Forum Replies Last Post
How to have Sequential numbers in a recordset? hman Beginning PHP 1 June 21st, 2008 07:23 AM
Sequential Numbers ricespn Access 5 February 17th, 2007 02:54 AM
How to submit the different data on single submit pushpa Classic ASP Databases 1 January 24th, 2007 07:10 PM
Sequential Numbers ricespn SQL Server 2000 14 November 1st, 2006 12:08 PM
Using a dataset to submit numbers digriz60 ASP.NET 1.0 and 1.1 Basics 0 November 19th, 2003 07:33 PM





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