use
="BSN" & Format([IDField],"00000000")
DisplayNum was my suggestion for the Control Name, Do Not use the same as
the Field Name, Access will Think you refer to the Control (ie self
reference)
Pieter
Kirt84 said:
Pieter
I have created a table and set the IDFiled to Autonumber. Then I have
created an input Form and on the control source of the IDField I have
put
in
the expression:
DisplayNum ControlSource: ="BSN" & Format([IDField],"00000000")
I have probably done it wrong as i'm still new to Access......please
help!!
Thank you
:
Control: DisplayNum ControlSource: ="BSN" &
Format([IDField],"00000000")
Note you may have to use ';' instead of ',' dependant on the windows
regional setting
& swap [IDField] for the actual Field
Pieter
Thanks, but how do I have the letters in front of the Autonumber???
--
Thank you for your help
:
Kirt84 wrote:
I require a function where Access will generate an Autonumber
with
each number beginning with the letters 'BNS'; I would like about
8
numbers after this. Also the numbers have to be unique. I am
still a
novice in Access so if someone can give me a step by step guide
it
would be great!
No what you want is a random number (autonumber will generate
one)
and
then you want to DISPLAY that number with the letters "BNS" in
front
of
it.
Don't bother trying to store the "BNS" in a table as there is no
need
to.
There are several ways of displaying the BNS depending on where you
will
need it.
Note: the user should never see the table directly or enter or
edit
data
there. They should only see data in forms, reports and maybe
queries.
Tables are only buckets of data and a list of field definitions.
--
Joseph Meehan
Dia duit
--------------------------------------------------------------------------------
I am using the free version of SPAMfighter for private users.
It has removed 4382 spam emails to date.
Paying users do not have this message in their emails.
Try SPAMfighter for free now!
--------------------------------------------------------------------------------
I am using the free version of SPAMfighter for private users.
It has removed 4388 spam emails to date.
Paying users do not have this message in their emails.
Try SPAMfighter for free now!