Try this:
<CFSET OrderID = "#DateFormat(Now(), "yyyymmdd")##TimeFormat(Now(),
"hhmmss")##RandRange(1000,9999)#">
(notice the double quotes)
--------------------------------------------------------------
Mark Warrick
Phone: (714) 547-5386
Efax.com Fax: (801) 730-7289
Personal Email: [EMAIL PROTECTED]
Personal URL: http://www.warrick.net
Business Email: [EMAIL PROTECTED]
Business URL: http://www.fusioneers.com
ICQ: 346566
--------------------------------------------------------------
> -----Original Message-----
> From: HappyToad.com [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 28, 2000 5:12 AM
> To: CF-Talk
> Subject: RE: Autonumber?
>
>
> I am getting the following error when I tried to use the code you sent me.
>
> Error Diagnostic Information Just in time compilation error
> Invalid parser
> construct found on line 16 at position 49. ColdFusion was looking at the
> following text:#Invalid expression format. The usual cause is an error in
> the expression structure. The last successfully parsed CFML
> construct was a
> CFSET tag occupying document position (16:1) to (16:6).
> Apparently it doesn't like having 2 ## in a row. This is exactly what I
> wanted to have, so I'd like to get it properly set up.
> Any ideas?
> Rich
>
> -----Original Message-----
> From: David Hannum [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, September 27, 2000 6:07 PM
> To: CF-Talk
> Subject: Re: Autonumber?
>
>
> One useful way is this:
>
> <CFSET OrderID = #DateFormat(Now(), "yyyymmdd")##TimeFormat(Now(),
> "hhmmss")##RandRange(1000,9999)#>
>
> OrderID = 18 digit unique number
>
> This gives you exact date and time for the order number. Now you
> have both
> order number and date/time info for analysis and the 5 digit random number
> tagged to end prevents dupes (unless you have
> ultra-high-never-before-heard-of-order-volume on your site).
>
> Dave
>
>
> ----- Original Message -----
> From: HappyToad.com <[EMAIL PROTECTED]>
> To: CF-Talk <[EMAIL PROTECTED]>
> Sent: Wednesday, September 27, 2000 10:44 AM
> Subject: Autonumber?
>
>
> > How can I have Cf create a unique order id for each order placed though
> the
> > store I am building?
> >
> >
> > Thanks,
> > Rich
> >
> >
> --------------------------------------------------------------------------
> ----
> > Archives: http://www.mail-archive.com/[email protected]/
> > To Unsubscribe visit
> http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
> send a message to [EMAIL PROTECTED] with 'unsubscribe' in
> the body.
>
> ------------------------------------------------------------------
> ----------
> --
> Archives: http://www.mail-archive.com/[email protected]/
> To Unsubscribe visit
> http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
> send a message to [EMAIL PROTECTED] with 'unsubscribe' in
> the body.
>
> ------------------------------------------------------------------
> ------------
> Archives: http://www.mail-archive.com/[email protected]/
> To Unsubscribe visit
> http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf
_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the
body.
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebarRsts&bodyRsts/cf_talk or send a message
to [EMAIL PROTECTED] with 'unsubscribe' in the body.