If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > ASP and Oracle Date

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-12-06, 14:13
MrhelpMe MrhelpMe is offline
Registered User
 
Join Date: Apr 2006
Posts: 140
Angry ASP and Oracle Date

hello,

Could someone please either complete the query string or simply tell me how I can insert the timestamp or currenttime into and oracle database. It is not working for me

Code:
CurDate = sysdate
ssqlCheckBox = "INSERT INTO Survey_User_Answer(Survey_Id,Question_Id,Answer_Id,Date_Answer,User_ID) VALUES (" & SurveyID & ",'" &  objRS("Question_Id") & "' , '" & answerChoices(answerChoice) & "' , '" & CurDate  & "', 'user')"
Reply With Quote
  #2 (permalink)  
Old 06-12-06, 14:21
MrhelpMe MrhelpMe is offline
Registered User
 
Join Date: Apr 2006
Posts: 140
Sorry experts me again. In addition to the posted question could someone also direct me or provide me a script that will display one survey question at a time from an oracle database.

I need to show the question and it's associated checkbox answers and then show a next and previous button, capture the chosen answers and then at the end of the last question add the submit button and insert the values chosen into a database. What is the level of difficulty on this. I am using ASP and oracle backend and if anyone needs to see the current code please let me know. Thanks.
Reply With Quote
  #3 (permalink)  
Old 06-12-06, 14:55
myle myle is online now
(Making Your Life Easy)
 
Join Date: Feb 2004
Location: New Zealand
Posts: 1,143
Can't help much but

In msaccess Your have to put # at the begin and end

Code:
CurDate = sysdate
ssqlCheckBox = "INSERT INTO Survey_User_Answer(Survey_Id,Question_Id,Answer_Id,Date_Answer,User_ID) VALUES (" & SurveyID & ",'" &  objRS("Question_Id") & "' , '" & answerChoices(answerChoice) & "' , #" & CurDate  & "#, 'user')"
__________________
hope this help

See clear as mud


StePhan McKillen
the aim is store once, not store multiple times
Remember... Optimize 'til you die!
Progaming environment:
Access based on my own environment: DAO3.6/A97/A2000/A2003
VB based on my own environment: vb6 sp5
ASP based on my own environment: 5.6
VB-NET based on my own environment started 2007
SQL-2005 based on my own environment started 2008
MYLE
Reply With Quote
  #4 (permalink)  
Old 06-12-06, 15:24
MrhelpMe MrhelpMe is offline
Registered User
 
Join Date: Apr 2006
Posts: 140
Well thanks for the reply but that's no good for Oracle Myle.
Reply With Quote
  #5 (permalink)  
Old 06-12-06, 16:01
myle myle is online now
(Making Your Life Easy)
 
Join Date: Feb 2004
Location: New Zealand
Posts: 1,143
just a question What is the Data type for the 'Date_Answer' in the data base
__________________
hope this help

See clear as mud


StePhan McKillen
the aim is store once, not store multiple times
Remember... Optimize 'til you die!
Progaming environment:
Access based on my own environment: DAO3.6/A97/A2000/A2003
VB based on my own environment: vb6 sp5
ASP based on my own environment: 5.6
VB-NET based on my own environment started 2007
SQL-2005 based on my own environment started 2008
MYLE
Reply With Quote
  #6 (permalink)  
Old 06-13-06, 08:16
MrhelpMe MrhelpMe is offline
Registered User
 
Join Date: Apr 2006
Posts: 140
The datatype is date but remember this is oracle so Date in oracle means date time.
Reply With Quote
  #7 (permalink)  
Old 06-13-06, 15:03
myle myle is online now
(Making Your Life Easy)
 
Join Date: Feb 2004
Location: New Zealand
Posts: 1,143
__________________
hope this help

See clear as mud


StePhan McKillen
the aim is store once, not store multiple times
Remember... Optimize 'til you die!
Progaming environment:
Access based on my own environment: DAO3.6/A97/A2000/A2003
VB based on my own environment: vb6 sp5
ASP based on my own environment: 5.6
VB-NET based on my own environment started 2007
SQL-2005 based on my own environment started 2008
MYLE
Reply With Quote
  #8 (permalink)  
Old 04-22-10, 05:13
naj_riq naj_riq is offline
Registered User
 
Join Date: Apr 2010
Posts: 6
plz could u tell the syntax if we r using oracle database instead of MSAccess.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On