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 / General 2 / January 2008

Tip: Looking for answers? Try searching our database.

update a second tbl

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
smason - 11 Jan 2008 16:19 GMT
> i have a data base that records of complaints and i need to keep all
> inputted data even if a record is deleted
>
> i have a main table which i want to update to another table periodically
> (once data has been inputted) but only additions to the table!
>
> so that even though a record may be deleted out of the main table it will be
> kept in the second table!
>
> is this possible
>
> thanks in advance
Dirk Goldgar - 11 Jan 2008 18:22 GMT
>> i have a data base that records of complaints and i need to keep all
>> inputted data even if a record is deleted
[quoted text clipped - 7 lines]
>>
>> is this possible

A better approach is never to allow deletions from the main table in the
first place.  Instead, have a Deleted flag (a yes/no field) in the table,
and set that flag to yes/true wherever you would normally have deleted a
record.  Use a query that returns only the records where Deleted=False
everywhere you would normally use the original table.  Any time you need to
see all records, deleted or not, use the table itself or a query that
doesn't apply the Deleted=False criterion.  And if you need to find only the
"deleted" records, use a query with the criterion, Deleted=True.

Signature

Dirk Goldgar, MS Access MVP
www.datagnostics.com

(please reply to the newsgroup)

smason - 14 Jan 2008 13:19 GMT
excellent point

will use that ! thanks for your help!

> >> i have a data base that records of complaints and i need to keep all
> >> inputted data even if a record is deleted
[quoted text clipped - 16 lines]
> doesn't apply the Deleted=False criterion.  And if you need to find only the
> "deleted" records, use a query with the criterion, Deleted=True.
 
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



©2009 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.