Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old February 28th, 2006, 02:35 AM
isaac2004
Guest
 
Posts: n/a
Default displaying the date

hello i am creating a dynamic page with database access that acts as an
online store. i have a sql statement that needs the date and time of
the order to send an invoice to a user.

here is my code to insert the new values into the database

strInsertSQL = "INSERT INTO tblOrders (strEmail, ISBN, dtOrderDate) " &
_
"VALUES ('" & strEmail & "', '" & strISBN & "', ?
'")"


i dont know what value to input where the ? is thanks for the help

  #2  
Old February 28th, 2006, 03:45 AM
lbolognini@gmail.com
Guest
 
Posts: n/a
Default Re: displaying the date


isaac2004 wrote:[color=blue]
> hello i am creating a dynamic page with database access that acts as an
> online store. i have a sql statement that needs the date and time of
> the order to send an invoice to a user.[/color]

In VBScript Now() could do the job, otherwise just tell the database to
put whatever function the db provides you to catch the current datetime
as the default value so you can keep it out of your sql statement.

Lorenzo

 

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles