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 > Visual Basic > VBScript runtime (0x800A000D) error

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-02-09, 11:43
mind_grapes mind_grapes is offline
Registered User
 
Join Date: Jun 2009
Location: Midlands
Posts: 133
VBScript runtime (0x800A000D) error

Hi all, Hope someone can help / point me in the right direction with this problem.

I have a "save" button that is suppose to write to a database, but when i click on the button i get this error message:

Microsoft VBScript runtime (0x800A000D)
Type mismatch: '[string: ","]'
/admin/stores/index.asp, line 380

here is the code at line 380:

Sub UpdateStoreDetailsRow()
sSQL = "EXEC spUpdateStoreDetails " & iStoreID & ",'" & sOpensMonday & "'" &_ (line 380)
",'" & sClosesMonday & "'" &_
",'" & sOpensTuesday & "'" &_
",'" & sClosesTuesday & "'" &_
",'" & sOpensWednesday & "'" &_
",'" & sClosesWednesday & "'" &_
",'" & sOpensThursday & "'" &_
",'" & sClosesThursday & "'" &_
",'" & sOpensFriday & "'" &_
",'" & sClosesFriday & "'" &_
",'" & sOpensSaturday & "'" &_
",'" & sClosesSaturday & "'" &_
",'" & sOpensSunday & "'" &_
",'" & sClosesSunday & "'" &_
",'" & sTelNumber & "'" &_
",'" & sFaxNumber & "'" &_
",'" & sEmailAddress & "'" &_
",'" & sSocialProfileAddress & "'" &_
",'" & sPostalAddress & "'" &_
"," & iWinID & "'"&_

oDB.execute(sSQL)
End Sub

Any help with this would be great.


Kind regards
MG
Reply With Quote
  #2 (permalink)  
Old 07-02-09, 12:01
mind_grapes mind_grapes is offline
Registered User
 
Join Date: Jun 2009
Location: Midlands
Posts: 133
Hi all,

Just to let you know i removed & ""&_ (from the last line) and it seems to work although, im not entirely sure for the reason behind it, so if someone could explain that would be great.

I think it may be because the line of code is trying to find the next bit of the code, but its not there? (poor terminology i know, lol)

Regards
MG

Last edited by mind_grapes; 07-02-09 at 12:09.
Reply With Quote
  #3 (permalink)  
Old 07-02-09, 13:02
Ax238 Ax238 is offline
Registered User
 
Join Date: May 2009
Posts: 257
Correct, the "_" character is a line continuation marker, so the last continued line would not need one.

Regards,

Ax
Reply With Quote
  #4 (permalink)  
Old 07-03-09, 03:55
mind_grapes mind_grapes is offline
Registered User
 
Join Date: Jun 2009
Location: Midlands
Posts: 133
Hi Ax238,

thanks for the confirmation, will be logged for future ref.

regards
Parms.
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