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 / July 2007

Tip: Looking for answers? Try searching our database.

Record Creation Date

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Stu - 30 Jul 2007 16:04 GMT
Is there any what I can find out when a record was created?
KARL DEWEY - 30 Jul 2007 16:18 GMT
Only if your table includes a DateTime field with default of Now() so that it
stores the date and time when the record is created.
Signature

KARL DEWEY
Build a little - Test a little

> Is there any what I can find out when a record was created?
Jamie Collins - 31 Jul 2007 10:35 GMT
On Jul 30, 4:18 pm, KARL DEWEY <KARLDE...@discussions.microsoft.com>
wrote:
> > Is there any what I can find out when a record was created?
>
[quoted text clipped - 3 lines]
> KARL DEWEY
> Build a little - Test a little

Did you test a little? There's more to it than that:

CREATE TABLE PrivateTest
(
  ID INTEGER NOT NULL UNIQUE,
  date_stamp DATETIME DEFAULT NOW() NOT NULL
)
;
INSERT INTO PrivateTest (ID, date_stamp)
  VALUES (1, #1990-01-01 00:00:00#)
;
SELECT ID, date_stamp
FROM PrivateTest
;

Oops! That row didn't get the correct timestamp i.e. not today's date.

The 'timestamp' column should perhaps be hidden:

CREATE VIEW PublicTest (ID) AS
SELECT ID
FROM PrivateTest
;
INSERT INTO PublicTest (ID)
  VALUES (2)
;
SELECT ID, date_stamp
FROM PrivateTest
;

Now REVOKE permissions from PUBLIC on the base table and grant them
instead to the VIEW.

Jamie.

--
ruralguy - 30 Jul 2007 16:20 GMT
AFAIK, not in Access unless you do your own DateTime stamp field and code.

>Is there any what I can find out when a record was created?

Signature

HTH - RuralGuy (RG for short) acXP WinXP Pro
Please post back to this forum so all may benefit.

 
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.