Wrox Programmer Forums
|
VB How-To Ask your "How do I do this with VB?" questions in this forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 3rd, 2005, 06:24 AM
Friend of Wrox
 
Join Date: Jan 2005
Posts: 1,525
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to crmpicco Send a message via AIM to crmpicco Send a message via MSN to crmpicco Send a message via Yahoo to crmpicco
Default syntax / code

If rXML.documentElement.selectNodes("Fare").Item(0).s electNodes("fType").Item(0).Text = "NET" Then
adultFareLine = rXML.documentElement.selectNodes("AdultFareLine"). Item(0).Text
childFareLine = rXML.documentElement.selectNodes("ChildFareLine"). Item(0).Text
infantFareLine = rXML.documentElement.selectNodes("InfantFareLine") .Item(0).Text
con.Execute ("update trip_cost set adult_fare_line = '" & adultFareLine & "' where trip_id = '" & tripid & "'")
End If

Can anyone tell me why this code is not working? Syntax problems?

Picco

www.crmpicco.co.uk
__________________
_______________________
Ayrshire Minis - a Mini E-Community
http://www.ayrshireminis.com
http://www.crmpicco.co.uk
 
Old March 3rd, 2005, 03:28 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,151
Thanks: 2
Thanked 14 Times in 14 Posts
Send a message via ICQ to SerranoG Send a message via AIM to SerranoG
Default

If trip_id is a number, then change the last where to

& "' where trip_id = " & tripid)


Greg Serrano
Michigan Dept. of Environmental Quality, Air Quality Division





Similar Threads
Thread Thread Starter Forum Replies Last Post
openquery syntax mpankuj SQL Server 2000 11 March 15th, 2010 01:27 AM
Syntax error =( deean Visual Basic 2008 Essentials 3 June 19th, 2008 05:02 PM
help syntax please khautinh SQL Server 2000 1 August 26th, 2006 02:47 AM
c# syntax msrnivas .NET Web Services 2 October 15th, 2004 01:26 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.