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 » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Record Count on Forms



 
 
Thread Tools Display Modes
  #1  
Old April 29th, 2004, 06:16 PM
Ray Hogan
external usenet poster
 
Posts: n/a
Default Record Count on Forms

Hi,
I have a Form (frmTeam) and a Sub Form (subfrmMember) and I wish to limit
the number of records to four (4) for each Form Record.
How do I get the Sub Form to count the number of Records?
Thanking you in anticipation.
Rayh


  #2  
Old April 29th, 2004, 08:10 PM
Ed Robichaud
external usenet poster
 
Posts: n/a
Default Record Count on Forms

One suggestion would be to modify your subForm's record source query to
select the last 4 records by date or some other field/value. Why the limit?
Are you confusing display space with data structure issues?
-Ed

"Ray Hogan" wrote in message
...
Hi,
I have a Form (frmTeam) and a Sub Form (subfrmMember) and I wish to limit
the number of records to four (4) for each Form Record.
How do I get the Sub Form to count the number of Records?
Thanking you in anticipation.
Rayh




  #3  
Old April 29th, 2004, 10:37 PM
Ray Hogan
external usenet poster
 
Posts: n/a
Default Record Count on Forms

Thanks Ed.
I have two tables (tblTeam to frmTeam) and (tblMember to subfrmMember) and
each team consists of 4 members. Therefore, I need to move to the next team
when I have entered 4 members.
Hope this makes sense.
Rayh


"Ed Robichaud" wrote in message
...
One suggestion would be to modify your subForm's record source query to
select the last 4 records by date or some other field/value. Why the

limit?
Are you confusing display space with data structure issues?
-Ed

"Ray Hogan" wrote in message
...
Hi,
I have a Form (frmTeam) and a Sub Form (subfrmMember) and I wish to

limit
the number of records to four (4) for each Form Record.
How do I get the Sub Form to count the number of Records?
Thanking you in anticipation.
Rayh






  #4  
Old April 30th, 2004, 12:49 AM
Van T. Dinh
external usenet poster
 
Posts: n/a
Default Record Count on Forms

My guess is that you can use the Form_AfterInsert Event of the Form
subfrmMember to count the number of Records in the Subform and take
appropriate action, e.g. setting AllowAdditions to False.

You will also need to consider the number of Members when the Main Form
moves from one Record to another.

You also need to consider the case where the Subform already has 4 Records
and the user deletes one Member. In this case, the AllowAdditions should be
change from False to True.

It is actually fairly complex if you want to consider all user's actions.

--
HTH
Van T. Dinh
MVP (Access)


"Ray Hogan" wrote in message
...
Thanks Ed.
I have two tables (tblTeam to frmTeam) and (tblMember to subfrmMember) and
each team consists of 4 members. Therefore, I need to move to the next

team
when I have entered 4 members.
Hope this makes sense.
Rayh


"Ed Robichaud" wrote in message
...
One suggestion would be to modify your subForm's record source query to
select the last 4 records by date or some other field/value. Why the

limit?
Are you confusing display space with data structure issues?
-Ed

"Ray Hogan" wrote in message
...
Hi,
I have a Form (frmTeam) and a Sub Form (subfrmMember) and I wish to

limit
the number of records to four (4) for each Form Record.
How do I get the Sub Form to count the number of Records?
Thanking you in anticipation.
Rayh








 




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 05:48 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.