.NET Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgramming.NET Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old February 6th, 2003, 06:06 PM
BigCed_21 BigCed_21 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Posts: 3 BigCed_21 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I'm having Problems with my replace statement

<img src="/forum/emoticons/jumpin.gif" alt="jumpin"> Can someone please tell me what i'm doing wrong!!!!!! <img src="/forum/emoticons/jumpin.gif" alt="jumpin"> <br><br><%<br><br>OpenConnection()<br><br><br> Dim strSQL, rs1, rs2, rsInsert, newID<br><br> strSQL = "Select * From Temp_tblContractor_Import"<br> set rs1 = objConn.Execute(strSQL)<br><br> <br> Do While NOT rs1.EOF <br><br> strSQL = "Insert INTO HBC_Contact (Fname, Lname, Business_Name, Address1, City, Zip, Phone1) " <br> strSQL = strSQL & "VALUES ('" & replace(rs1("FName"), "'", "''"), '" & replace(rs1("LName"), "'", "''"), '" & replace(rs1("Business_Name"), "'", "''")& "', '" & replace(rs1("Address"), "'", "''")& "', '" & replace(rs1("City"), "'", "''")& "', '" & replace(rs1("Zip"), "'", "''")& "', '" & replace(rs1("Phone_No"), "'", "''")& "');"<br> strSQL = strSQL & "select @@identity"<br> set rsInsert = objconn.execute(strSQL).nextrecordset<br> <br> newID = rsInsert(0)<br> <br> strSQL = "Insert Into HBC_License_Holder (Contractor_No, Contact_ID) " <br> strSQL = strSQL & "VALUES ('" & rs1("Contractor_No") & "'," & newID & ");"<br> <br> 'objConn.Execute(strSQL)<br> <br> rs1.MoveNext()<br> Loop<br><br><br>CloseConnection()<br><br>Set rs1 = Nothing<br>Set rsInsert = Nothing

Reply With Quote
Reply

Viewing: ASP Free ForumsProgramming.NET Development > I'm having Problems with my replace statement


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT