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  

Restricting SubForm to One Record Entry Per Parent: Access 2007



 
 
Thread Tools Display Modes
  #1  
Old March 9th, 2010, 08:30 PM posted to microsoft.public.access.forms
Alcide
external usenet poster
 
Posts: 10
Default Restricting SubForm to One Record Entry Per Parent: Access 2007

Hello All,

I have a one-to-one relationship between two table. I have successfully
added the subform, but I get the option to add additional child records in
the Datasheet View. This means that when a user tabs to the next row and
enters data they get an error--and they should.

Question: How do I restrict the subform to show only one row in Datasheet
View?
I hope I was clear. Feel free to ask for clarification.

Thank you in advance for your assistance.
  #2  
Old March 9th, 2010, 10:05 PM posted to microsoft.public.access.forms
Maurice
external usenet poster
 
Posts: 1,585
Default Restricting SubForm to One Record Entry Per Parent: Access 2007

Alcide,

You have two options here. If the records are already added to the source of
the subform you could set the "Allow additions=no" option in the
formproperties.

You can also hide the navigationbuttons and set the cycle option of the form
to current record, that way the user will always stay in the same record. In
combination with the hiding of the navigationbutton you have a good
combination.

hth
--
Maurice Ausum


"Alcide" wrote:

Hello All,

I have a one-to-one relationship between two table. I have successfully
added the subform, but I get the option to add additional child records in
the Datasheet View. This means that when a user tabs to the next row and
enters data they get an error--and they should.

Question: How do I restrict the subform to show only one row in Datasheet
View?
I hope I was clear. Feel free to ask for clarification.

Thank you in advance for your assistance.

 




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 12:27 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.