Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - How to make a follow up number
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to make a follow up number

 Post Reply Post Reply
Author
sierra View Drop Down
Newbie
Newbie


Joined: 30 July 2003
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote sierra Quote  Post ReplyReply Direct Link To This Post Topic: How to make a follow up number
    Posted: 30 July 2003 at 11:55am
I am trying to make the following work in ASP in combination with SQL

A00001, A00002, ..... A99999, B00001, B00002,
.....B99999, C00001

It has to be an unique number....

I have come this far...

<!-- #Include FILE="../connections/conn_????.asp"--><%
Set rs = server.CreateObject ("ADODB.recordset")

SQL = "Select max(volgnummer)as volgnummer from Formteller"
set rs = conn.Execute(SQL)
volgnummer = rs("volgnummer")+ 1

SQL = "UPDATE Formteller SET volgnummer=" & volgnummer
set rs = conn.Execute(SQL)



Can someone please help me
Sorry for the bad English


Edited by sierra
Back to Top
sierra View Drop Down
Newbie
Newbie


Joined: 30 July 2003
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote sierra Quote  Post ReplyReply Direct Link To This Post Posted: 30 July 2003 at 4:01pm
HELP please
Back to Top
b_bonnett View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 16 April 2003
Location: New Zealand
Status: Offline
Points: 275
Post Options Post Options   Thanks (0) Thanks(0)   Quote b_bonnett Quote  Post ReplyReply Direct Link To This Post Posted: 31 July 2003 at 2:57am

The easiest solution is to set the 'volgnummer' field to an autonumber type. This will generate a new and unique number for each new record entered into the database.

Blair

Webmaster, The Plane Gallery
Greetings From Christchurch
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.