CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> CodeChargeStudio.Discussion

 default datetime not working

Print topic Send  topic

Author Message
DaveS
Posted: 07/31/2002, 2:38 PM

When I try to add a default date time of CurrentDateTime, I get a SQL error
saying that the datetime value is wrong. I think CCS isn't putting single
quotes around the datetime value as it should. ANy way around this?

-Dave

Alexey Alexapolsky
Posted: 08/01/2002, 5:21 AM

Does it happen in Grid or Record ?
What is your CCS version ?

--

Alex,
Support Engineer
CodeCharge Team


"DaveS" <dschu@dmv.state.ny.us> wrote in message
news:ai9lbt$o3k$1@news.codecharge.com...
> When I try to add a default date time of CurrentDateTime, I get a SQL
error
> saying that the datetime value is wrong. I think CCS isn't putting single
> quotes around the datetime value as it should. ANy way around this?
>
> -Dave
>
>

DaveS
Posted: 08/01/2002, 6:21 AM

Alex,

This is happening in RECORD. I am using the technique in the tutorial that
has you add a hidden field tied to a database datetime field and uses the
Default property to populate the hidden field with the currentdatetime on a
new record. However like I said, Access or ODBC is throwing an error about
it. The value of the datetime looks good, but I was wondering about the
quotes.

I am using CCS 1.0.7.0 and CF as the Code Language.

-Dave

P.S. One thing that we as CF developers do here is we use CF's
CreateODBCDateTime function to make a datetime string that almost always
works with all ODBC type databases.


"Alexey Alexapolsky" <alexa@codecharge.com> wrote in message
news:aib93k$pj6$2@news.codecharge.com...
> Does it happen in Grid or Record ?
> What is your CCS version ?
>
> --
>
> Alex,
> Support Engineer
> CodeCharge Team
>
>
> "DaveS" <dschu@dmv.state.ny.us> wrote in message
>news:ai9lbt$o3k$1@news.codecharge.com...
> > When I try to add a default date time of CurrentDateTime, I get a SQL
> error
> > saying that the datetime value is wrong. I think CCS isn't putting
single
> > quotes around the datetime value as it should. ANy way around this?
> >
> > -Dave
> >
> >
>
>


   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.