PC Review


Reply
Thread Tools Rate Thread

Re: Unique Identifier

 
 
Hugh O'Neill
Guest
Posts: n/a
 
      11th Sep 2003
Christy wrote:

> I exported data from a commercial database and am
> modifying it in Access for a client. There is a field
> called import ID that I use to link tables and will be
> needed to re-import the data to the commercial db when
> I'm done. It is a text field. I created a time/date
> field called AutoGen. I set it to the value of now with
> a mask of mmddyyyyhhnnss, which I figure is pretty
> specific and unique. It gets created when a new record
> is created. I then ran an update query to set the import
> ID to the AutoGen value when Import ID was null. The
> only problem is, the value of the import id is now
> 09/10/03 5:25:34 PM not 09102003062534 like I want it to
> be. How can I paste the information in the current
> format to the Import ID field?
>
> Or - is there a better solution to my mousetrap? I'm
> running out of ideas!
>
> Thank you!!



However you apply the Format to it, the underlying value in a Date/Time
Field is floating point, where the whole number part is the number of
days since 30 December 1899 and the decimal part is the time fraction
(12 noon is 0.5). This will give a unique value in your instance but
you could also use Autonumber to deliver a unique value for each record
created.

Is there a reason why you would need to display the unique record
identifier? To do so would be unusual.

hth

Hugh
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
XSD Error: "Expecting '.', identifier or quoted identifier withmultiple tables. S_K Microsoft ASP .NET 0 6th Aug 2008 10:22 PM
Assigning unique identifier to unique authors =?Utf-8?B?Ymx1ZXNreQ==?= Microsoft Access Queries 5 3rd Aug 2007 09:12 PM
identifier not found error, undeclared identifier aarthi28@gmail.com Windows XP WMI 3 26th Feb 2007 03:11 AM
identifier not found error, undeclared identifier aarthi28@gmail.com Microsoft VC .NET 3 26th Feb 2007 03:11 AM
Windows OS Unique Identifier Cap Windows XP General 1 13th May 2004 07:35 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:33 AM.