mramirez18
Posts: 56
|
Posted: 08/27/2006, 6:35 PM |
|
I have an application (CCS 2.3.2, Access, IIS) that collects information and submits the results to the database. On the Editable Grid - Data - properties I have the Records Per Page set to 20 and the Empty Rows set to 1. In the form navigation I have the page counts and no of pages displayed.
What I want to do and can not find a way that it only allows user to enter 3 records only, and then is presented with a warning.
Warning - "You can only enter 3 records for scheduling Automated Reports"
|
|
|
kevind
Posts: 251
|
Posted: 09/28/2006, 12:36 PM |
|
you should be able to set a session variable when submitting new records and then check its value in the before show event of the page in question
if cint( Session("NewRecords") )>3 then
response.redirect("WarnUser.asp")
end if
If the user tries to get around this by logging out and back in, I would add some code to store the count of their submissions to a table with a date and then check that before showing the page with a dlookup .
KD
_________________
thanks
Kevin
======================
CCS 3.2.x / ASP / MS Access /mySQL / PHP / jQuery / jQuery UI / jQuery Mobile
|
|
|
|