how to restrict user to insert specific number of records (urgent) [message #195135] |
Wed, 27 September 2006 02:46 |
fassi79
Messages: 3 Registered: July 2006 Location: LAHORE
|
Junior Member |
|
|
i have master detail Form. My requirement is as following.
1) In master block user enter other information and enter suppose 5 in a text item.
2) Then 5 rows should be display in detail block. and user couldnt enter more than 5 records in detail block.
Regards
Fassi
|
|
|
|
|
Re: how to restrict user to insert specific number of records (urgent) [message #195471 is a reply to message #195169] |
Thu, 28 September 2006 20:28 |
|
djmartin
Messages: 10181 Registered: March 2005 Location: Surges Bay TAS Australia
|
Senior Member Account Moderator |
|
|
The 'Get_Block_Property(Records_Displayed)' command will show how many records are displayed but it is not an option with 'Set_Block_Property'.
If you really want to control EVERYTHING them you will need to define SEPARATE fields for EVERY item in EACH row and column and use the 'Set_Item_Property(visible)' command to 'hide' the ones you don't want displayed. Expect to take about 30-40 hours to write and decode this type of code to handle 5 rows of 10 columns.
By the way, what are you going to do with the 5th row in the database if the user changes the master record from '5' to '4'?
David
|
|
|