Jan 18, 2005 #1 icsupt MIS Jun 14, 2004 150 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 Apr 16, 2001 2,628 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 Jun 16, 2000 6,606 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