A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Prevent user to type on Autonumber



 
 
Thread Tools Display Modes
  #1  
Old March 4th, 2008, 09:25 AM posted to microsoft.public.access.forms
Frank Situmorang[_2_]
external usenet poster
 
Posts: 340
Default Prevent user to type on Autonumber

Hello,

Although it says autonumber, users have tendency to type it. My question is
how can we prevent the user to type it ( unable to type that field in the
form) even we can assign the cursor passes it go to the next field.

Thanks in advance
--
H. Frank Situmorang
  #2  
Old March 4th, 2008, 09:30 AM posted to microsoft.public.access.forms
Jeanette Cunningham
external usenet poster
 
Posts: 2,190
Default Prevent user to type on Autonumber

Make the control locked.

In design view, select the control,
on property dialog | Data tab | Locked - set to true

Jeanette Cunningham

"Frank Situmorang" wrote in message
...
Hello,

Although it says autonumber, users have tendency to type it. My question
is
how can we prevent the user to type it ( unable to type that field in the
form) even we can assign the cursor passes it go to the next field.

Thanks in advance
--
H. Frank Situmorang



  #3  
Old March 4th, 2008, 10:54 AM posted to microsoft.public.access.forms
Frank Situmorang[_2_]
external usenet poster
 
Posts: 340
Default Prevent user to type on Autonumber

Thanks Jeannette for your quick answer. But will it not make autonumber not
to work?/update the table?
--
H. Frank Situmorang


"Jeanette Cunningham" wrote:

Make the control locked.

In design view, select the control,
on property dialog | Data tab | Locked - set to true

Jeanette Cunningham

"Frank Situmorang" wrote in message
...
Hello,

Although it says autonumber, users have tendency to type it. My question
is
how can we prevent the user to type it ( unable to type that field in the
form) even we can assign the cursor passes it go to the next field.

Thanks in advance
--
H. Frank Situmorang




  #4  
Old March 4th, 2008, 11:30 AM posted to microsoft.public.access.forms
Jeanette Cunningham
external usenet poster
 
Posts: 2,190
Default Prevent user to type on Autonumber

Setting it to Locked, stops users from changing it only. Behind the form it
will work as normal, only the user is prevented from interfering where they
are not welcome.
Test it out. Set it to Locked and test it with a new record and see how well
it works.

Jeanette Cunningham


"Frank Situmorang" wrote in message
...
Thanks Jeannette for your quick answer. But will it not make autonumber
not
to work?/update the table?
--
H. Frank Situmorang


"Jeanette Cunningham" wrote:

Make the control locked.

In design view, select the control,
on property dialog | Data tab | Locked - set to true

Jeanette Cunningham

"Frank Situmorang" wrote in message
...
Hello,

Although it says autonumber, users have tendency to type it. My
question
is
how can we prevent the user to type it ( unable to type that field in
the
form) even we can assign the cursor passes it go to the next field.

Thanks in advance
--
H. Frank Situmorang






  #5  
Old March 4th, 2008, 03:10 PM posted to microsoft.public.access.forms
Klatuu
external usenet poster
 
Posts: 7,074
Default Prevent user to type on Autonumber

Jeanette is pretty much correct. It would also be useful to set the Enabled
property to No, also, so tabbing will bypass it.

But, I do not allow users to see autonumber fields. I have them on the
form, but made Not Visible and no tab stop. There is absolutely no reason
for an autonumber field used as a primary key to by visible to a user.

--
Dave Hargis, Microsoft Access MVP


"Frank Situmorang" wrote:

Thanks Jeannette for your quick answer. But will it not make autonumber not
to work?/update the table?
--
H. Frank Situmorang


"Jeanette Cunningham" wrote:

Make the control locked.

In design view, select the control,
on property dialog | Data tab | Locked - set to true

Jeanette Cunningham

"Frank Situmorang" wrote in message
...
Hello,

Although it says autonumber, users have tendency to type it. My question
is
how can we prevent the user to type it ( unable to type that field in the
form) even we can assign the cursor passes it go to the next field.

Thanks in advance
--
H. Frank Situmorang




  #6  
Old March 4th, 2008, 07:19 PM posted to microsoft.public.access.forms
Linq Adams via AccessMonster.com
external usenet poster
 
Posts: 1,474
Default Prevent user to type on Autonumber

While Klatuu's advcie about even showing an autonumber is spot on, I'm
confused by the queation itself! An Autonumber is never editable, whether you
explicitly "Lock" the field or not!

--
There's ALWAYS more than one way to skin a cat!

Answers/posts based on Access 2000/2003

Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...forms/200803/1

  #7  
Old March 4th, 2008, 07:32 PM posted to microsoft.public.access.forms
Klatuu
external usenet poster
 
Posts: 7,074
Default Prevent user to type on Autonumber

It would just avoid throwing an error if a user tried to edit it.
--
Dave Hargis, Microsoft Access MVP


"Linq Adams via AccessMonster.com" wrote:

While Klatuu's advcie about even showing an autonumber is spot on, I'm
confused by the queation itself! An Autonumber is never editable, whether you
explicitly "Lock" the field or not!

--
There's ALWAYS more than one way to skin a cat!

Answers/posts based on Access 2000/2003

Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...forms/200803/1


 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 02:38 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.