First of all, I apologize for the many posts relating to this, but I have searched as thouroghly as I can and I am drawing a blank.
I am trying to protect a DEMO application that I send out to prospective customers. I have it to where it shuts off after a certain date but I also want to limit the numnber of records that can be entered.
I also do not know much about code.
I have benn told that DCount is probably the best way to go.
Lets say I have a Table named Incident Report. I have numerous fields including an autonumber field named ID#.
I have a main switchboard that contains numerous command buttons that open each individual form. The name of this particular form is frmincident. I have it set to open to the next new record in the On Click event.
How would I limit the number of records to say fifty (50) records. If it exceeds 50 I would like for it to display a message to say the DEMO has expired, etc.
What would the exact code be? Where would I place the code, in the On Click of the command button, After Update of the switchboard, etc.? Do I need to create another field?
I would very much appreciate any help I could get.
Thanks in advance.
Thomas Bailey
tomcat@reportcop.com
I am trying to protect a DEMO application that I send out to prospective customers. I have it to where it shuts off after a certain date but I also want to limit the numnber of records that can be entered.
I also do not know much about code.
I have benn told that DCount is probably the best way to go.
Lets say I have a Table named Incident Report. I have numerous fields including an autonumber field named ID#.
I have a main switchboard that contains numerous command buttons that open each individual form. The name of this particular form is frmincident. I have it set to open to the next new record in the On Click event.
How would I limit the number of records to say fifty (50) records. If it exceeds 50 I would like for it to display a message to say the DEMO has expired, etc.
What would the exact code be? Where would I place the code, in the On Click of the command button, After Update of the switchboard, etc.? Do I need to create another field?
I would very much appreciate any help I could get.
Thanks in advance.
Thomas Bailey
tomcat@reportcop.com