Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Modules / DAO / VBA / March 2007

Tip: Looking for answers? Try searching our database.

Demo Solution

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Andy6 - 31 Mar 2007 10:50 GMT
I want to make a demo version of my database solution and I thought that a
version where the maximum number of records in any of the tables was, say 10.
does anyone know if this is possible. or a better idea as a demo version.
Appreciate your ideas.
Andy.....
RoyVidar - 31 Mar 2007 11:18 GMT
"Andy6" <Andy6@discussions.microsoft.com> wrote in message
<051BEA05-C03E-48E8-AB6E-3941697328AA@microsoft.com>:
> I want to make a demo version of my database solution and I thought
> that a  version where the maximum number of records in any of the
> tables was, say 10.  does anyone know if this is possible. or a
> better idea as a demo version. Appreciate your ideas.
> Andy.....

Tony Toews has a good article http://www.granite.ab.ca/access/demo.htm

There should also be something to find if you search these groups, as
this has been discussed.

Else, not necessarily a better idea, but using ADO, you can use CHECK
constraints to limit the number of records, too - for instance
something
like this (untested):

currentproject.connection.execute _
 "ALTER TABLE myTable ADD CONSTRAINT ch_max_num_of_records " & _
 "CHECK (10 >= SELECT Count(*) FROM myTable))"

In this article, there's a bit more about methods like that
http://msdn2.microsoft.com/en-us/library/aa140015(office.10).aspx

Without additional security on the database, it wouldn't be very
secure,
but this feature isn't used by many Access developers (who mostly
favour DAO over DDL/ADO), so it could pose a challenge to break ;-)

Signature

Roy-Vidar

Andy6 - 31 Mar 2007 21:14 GMT
Thanks Roy youv'e given me some things to think about. but for now I will
probably continue with my thirty day bomb in the main forms open event, but I
will keep working on different solutions.
Thanks for answering
Andy....
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.