PC Review


Reply
Thread Tools Rate Thread

Date Time syntax for saving

 
 
skc
Guest
Posts: n/a
 
      7th Jun 2004
Hi,

I have two asp pages - one is a form with hidden fields
called manualDate with value <%=Date()%> and ManualTime
with value <%=Time()%>

The next page contains a DRW with the INSERT INTO
SQL...trouble is, I am getting problems with the dates.

Here is my code:

INSERT INTO table (a,b,c) Values ('::a::',::b::,::c:

It is the b,c that are causing the problem as a is a text
box field.

I think I have to use @ or # but I have forgotten - can
someone please help??

Skc
 
Reply With Quote
 
 
 
 
Kevin Spencer
Guest
Posts: n/a
 
      7th Jun 2004
If you're using an Access database, date/times are delimited with '#'
characters.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"skc" <(E-Mail Removed)> wrote in message
news:18fbe01c44c76$0dedd9c0$(E-Mail Removed)...
> Hi,
>
> I have two asp pages - one is a form with hidden fields
> called manualDate with value <%=Date()%> and ManualTime
> with value <%=Time()%>
>
> The next page contains a DRW with the INSERT INTO
> SQL...trouble is, I am getting problems with the dates.
>
> Here is my code:
>
> INSERT INTO table (a,b,c) Values ('::a::',::b::,::c:
>
> It is the b,c that are causing the problem as a is a text
> box field.
>
> I think I have to use @ or # but I have forgotten - can
> someone please help??
>
> Skc



 
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
PLease HElp - Date and TIme syntax in Query Alan Microsoft Access VBA Modules 2 12th Nov 2008 10:24 AM
Saving a file with time and date at a set time period =?Utf-8?B?TWFyayBEdWxsaW5naGFt?= Microsoft Excel Programming 10 3rd Mar 2007 12:10 PM
The Jet SQL Syntax For Entering A Date And Time Into A DateTime Field Nathan Sokalski Microsoft Access Queries 2 12th Jun 2005 05:06 AM
Saving codes source file date-time stamp for run-time use =?Utf-8?B?a2VuQG5vc3BhbS5ub3NwYW0=?= Microsoft Dot NET Framework 4 24th Jan 2005 05:32 PM
date and time syntax =?Utf-8?B?c21rMjM=?= Microsoft Access Form Coding 3 22nd Jun 2004 02:22 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:47 AM.