Autonumber prefix (1 Viewer)

Matt Brown

Registered User.
Local time
Today, 03:05
Joined
Jun 5, 2000
Messages
120
Is it possible to add a prefix to the autonumnber.
I have tried but failed.
I would like to be able to place the following prefix:

CN

To a autonumber field.
Any help appreciated
Matt
 

The_Doc_Man

Immoderate Moderator
Staff member
Local time
Yesterday, 21:05
Joined
Feb 28, 2001
Messages
27,407
The issue is, of course, whether you want the autonumber to contain this field or merely to display CN as a prefix when shown on forms or reports - or, for that matter, in datasheet view.

I will say right off that I personally see no advantage to storing a constant "CN" in a number. Two bytes that you could predict in your sleep. Why track 'em?

I respectfully suggest that you look up the formatting topics for ways to include constant text with a displayed field. Specifically, the FORMAT function for queries, forms, and reports, and the FORMAT property for fielddefs within a tabledef.
 

Matt Brown

Registered User.
Local time
Today, 03:05
Joined
Jun 5, 2000
Messages
120
Thanks
Matt
 

Users who are viewing this thread

Top Bottom