Jan 18, 2005 #1 icsupt MIS Joined Jun 14, 2004 Messages 150 Location US I have a subform that I would like to only be able to limit 18 records. Is there a way to do this? Thanks in advance.
I have a subform that I would like to only be able to limit 18 records. Is there a way to do this? Thanks in advance.
Jan 18, 2005 #2 LonnieJohnson Programmer Joined Apr 16, 2001 Messages 2,628 Location US Look at the TopValues property in Access help. You can use this to return a specified number of records. Top 18 or top 25. Just curiuos, why 18 and is there a common denominator that binds those 18 records? ProDev, MS Access Applications Visit me at ==> http://www.prodev.us May God bless you beyond your imagination!!! Upvote 0 Downvote
Look at the TopValues property in Access help. You can use this to return a specified number of records. Top 18 or top 25. Just curiuos, why 18 and is there a common denominator that binds those 18 records? ProDev, MS Access Applications Visit me at ==> http://www.prodev.us May God bless you beyond your imagination!!!
Jan 18, 2005 #3 RoyVidar Instructor Joined Jun 16, 2000 Messages 6,606 Location NO You could try the on current event of the form to check how many records are alredy entered, then toggle the .AllowAdditions property [tt]if me.recordsetclone.recordcount>18 then me.allowadditions=false else me.allowadditions = true end if[/tt] You may have to use a [tt]me.recordsetclone.movelast[/tt] prior to the test. Roy-Vidar Upvote 0 Downvote
You could try the on current event of the form to check how many records are alredy entered, then toggle the .AllowAdditions property [tt]if me.recordsetclone.recordcount>18 then me.allowadditions=false else me.allowadditions = true end if[/tt] You may have to use a [tt]me.recordsetclone.movelast[/tt] prior to the test. Roy-Vidar