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 going to New Record



 
 
Thread Tools Display Modes
  #1  
Old March 24th, 2010, 04:02 PM posted to microsoft.public.access.forms
Peter Marshall
external usenet poster
 
Posts: 7
Default Prevent going to New Record

In a form that the user can goto Next or Previous record, how do I prevent
them from going to a New record?

--

Peter Marshall
Manager Information Services
Ohio Coatings Company


  #2  
Old March 24th, 2010, 04:28 PM posted to microsoft.public.access.forms
Al Campagna[_2_]
external usenet poster
 
Posts: 1,462
Default Prevent going to New Record

Peter,
Set the form's Allow Additions to No
--
hth
Al Campagna
Microsoft Access MVP 2007-2009
http://home.comcast.net/~cccsolutions/index.html

"Find a job that you love... and you'll never work a day in your life."


"Peter Marshall" wrote in message
...
In a form that the user can goto Next or Previous record, how do I prevent
them from going to a New record?

--

Peter Marshall
Manager Information Services
Ohio Coatings Company



  #3  
Old March 24th, 2010, 04:42 PM posted to microsoft.public.access.forms
Peter Marshall
external usenet poster
 
Posts: 7
Default Prevent going to New Record

Actually, I saw that solution on another post, but it still allows the form
to go to a new blank record, although it does not allow that record to be
saved. I think I have seen some VBA code that prevents the form from going
to a blank new record.

--

Peter Marshall
Manager Information Services
Ohio Coatings Company
"Al Campagna" wrote in message
...
Peter,
Set the form's Allow Additions to No
--
hth
Al Campagna
Microsoft Access MVP 2007-2009
http://home.comcast.net/~cccsolutions/index.html

"Find a job that you love... and you'll never work a day in your life."


"Peter Marshall" wrote in message
...
In a form that the user can goto Next or Previous record, how do I
prevent them from going to a New record?

--

Peter Marshall
Manager Information Services
Ohio Coatings Company





  #4  
Old March 24th, 2010, 04:43 PM posted to microsoft.public.access.forms
RonaldoOneNil
external usenet poster
 
Posts: 345
Default Prevent going to New Record

In the forms properties, set the allow additions to No

"Peter Marshall" wrote:

In a form that the user can goto Next or Previous record, how do I prevent
them from going to a New record?

--

Peter Marshall
Manager Information Services
Ohio Coatings Company


.

  #5  
Old March 24th, 2010, 07:41 PM posted to microsoft.public.access.forms
Al Campagna[_2_]
external usenet poster
 
Posts: 1,462
Default Prevent going to New Record

Peter,
What version?
I can't duplicate your problem.
A form, with Allow Additions = No, will not allow access a new record.
So there's something else going on here...

Try this...
Place an unbound text control on the form with a ControlSource of...
=IIf([newrecord],"New","Not New")

Also, what code are you using to open the form?
If you use the acFormAdd, or acFormEdit, you can override the
AllowAdditions.
Try just
DoCmd.OpenForm "YourForm"
to see if that makes any difference.
--
hth
Al Campagna
Microsoft Access MVP 2007-2009
http://home.comcast.net/~cccsolutions/index.html

"Find a job that you love... and you'll never work a day in your life."



"Peter Marshall" wrote in message
...
Actually, I saw that solution on another post, but it still allows the
form to go to a new blank record, although it does not allow that record
to be saved. I think I have seen some VBA code that prevents the form
from going to a blank new record.

--

Peter Marshall
Manager Information Services
Ohio Coatings Company
"Al Campagna" wrote in message
...
Peter,
Set the form's Allow Additions to No
--
hth
Al Campagna
Microsoft Access MVP 2007-2009
http://home.comcast.net/~cccsolutions/index.html

"Find a job that you love... and you'll never work a day in your
life."


"Peter Marshall" wrote in
message ...
In a form that the user can goto Next or Previous record, how do I
prevent them from going to a New record?

--

Peter Marshall
Manager Information Services
Ohio Coatings Company







 




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 07:45 PM.


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