PC Review


Reply
Thread Tools Rate Thread

Can I Add A Custom PreFix to an Autonumber Field

 
 
Debbie Saffold
Guest
Posts: n/a
 
      12th Jun 2004
I have a database that generates an auto number. Is there a way to add a
custom prefix to the auto number?


 
Reply With Quote
 
 
 
 
Thomas A. Rowe
Guest
Posts: n/a
 
      12th Jun 2004
No, you would have write a custom script that create unique IDs in the format that you require. In
IE address bar type:

? ASP Generate Unique IDs

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)
http://www.ycoln-resources.com
FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
To assist you in getting the best answers for FrontPage support see:
http://www.net-sites.com/sitebuilder/newsgroups.asp

"Debbie Saffold" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> I have a database that generates an auto number. Is there a way to add a
> custom prefix to the auto number?
>
>



 
Reply With Quote
 
MD Websunlimited
Guest
Posts: n/a
 
      12th Jun 2004
Hi Debbie,

Yes you can through code, i.e., the code will have to add pre-fix the to db auto number before it is displayed.


--
Mike -- FrontPage MVP '97-'02
http://www.websunlimited.com
J-Bots Plus 2002 87 components for FrontPage
http://www.websunlimited.com/order/P...p_help_dir.htm
FrontPage Add-ins Since '97 2003 / 2002 / 2000 Compatible

"Debbie Saffold" <(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
> I have a database that generates an auto number. Is there a way to add a
> custom prefix to the auto number?
>
>



 
Reply With Quote
 
MD Websunlimited
Guest
Posts: n/a
 
      12th Jun 2004
An example:

Order Number: XYZ- <% =rs("recNumber") %>

Where recNumber is the autonumber field in the database. Note you can also easily modify the DRW code to accomplish.


--
Mike -- FrontPage MVP '97-'02
http://www.websunlimited.com
Need to protect your web pages Page Protector Pro
http://www.websunlimited.com/order/P...ro/pagepro.htm
FrontPage Add-ins Since '97 2003 / 2002 / 2000 Compatible


"Debbie Saffold" <(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
> I have a database that generates an auto number. Is there a way to add a
> custom prefix to the auto number?
>
>



 
Reply With Quote
 
Thomas A. Rowe
Guest
Posts: n/a
 
      12th Jun 2004
However that is only workable if the same prefix will always be used and is only for display
purposes to the users visiting the site. It can not be used to as a lookup ID in the database.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)
http://www.ycoln-resources.com
FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
To assist you in getting the best answers for FrontPage support see:
http://www.net-sites.com/sitebuilder/newsgroups.asp

"MD Websunlimited" <(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
> An example:
>
> Order Number: XYZ- <% =rs("recNumber") %>
>
> Where recNumber is the autonumber field in the database. Note you can also easily modify the DRW

code to accomplish.
>
>
> --
> Mike -- FrontPage MVP '97-'02
> http://www.websunlimited.com
> Need to protect your web pages Page Protector Pro
> http://www.websunlimited.com/order/P...ro/pagepro.htm
> FrontPage Add-ins Since '97 2003 / 2002 / 2000 Compatible
>
>
> "Debbie Saffold" <(E-Mail Removed)> wrote in message

news:(E-Mail Removed)...
> > I have a database that generates an auto number. Is there a way to add a
> > custom prefix to the auto number?
> >
> >

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Create custom autonumber field KLR Microsoft Access 5 12th Aug 2010 12:27 AM
Barcode a Custom Autonumber field Asif Shah Microsoft Access Reports 2 5th Nov 2009 02:34 PM
AutoNumber & Prefix =?Utf-8?B?U2VjcmV0IFNxdWlycmVs?= Microsoft Access 30 18th Aug 2006 09:47 AM
Sorting a Custom AutoNumber Field =?Utf-8?B?Si4gTXVsbGVuYmFjaA==?= Microsoft Access 9 5th Apr 2006 09:39 PM
Custom Autonumber Field =?Utf-8?B?dmFk?= Microsoft Access Forms 1 30th Jan 2004 05:09 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:08 PM.