Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases 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 February 22nd, 2005, 02:36 PM
Authorized User
 
Join Date: Jan 2005
Posts: 42
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Ok now I am trying to insert the recordset into a new table...I tried to model my insert statement off of your earlier function...but this is where I am lacking in knowledge... here is my code so far...

I feel I am close I just need a little guidence.

       If not getregioncodes.eof then

        Do while not getregioncodes.eof
        For each zipcode in getregioncodes.zipcode sql2 = "INSERT INTO NewDealercodes (deaID,
                              zipcode) Values ('"&deaID&"',
                              '"&zipcode&"')"

        Next
             getregioncodes.MoveNext

        loop

            response.write "SQL is " & sql2 & "<BR>"
            set addzipcodes= conn.execute(sql2)


                end if

I know it has to do with my "zipcode" in the FOR statement. But I don't know how to define it from the recordset.




 
Old February 23rd, 2005, 05:02 AM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 683
Thanks: 0
Thanked 1 Time in 1 Post
Default

posted at: http://p2p.wrox.com/topic.asp?TOPIC_ID=26985






Similar Threads
Thread Thread Starter Forum Replies Last Post
Errors nnrin Classic ASP Databases 2 December 11th, 2007 12:36 PM
Help with Errors Riderman BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 0 August 8th, 2007 09:46 AM
Can't get errors to display with <html:errors> michaeldill JSP Basics 0 August 2nd, 2004 01:47 PM
errors and fixing errors Droopy XML 0 August 26th, 2003 12:47 AM
Errors Errors DB Errors Ljhopkins VS.NET 2002/2003 0 July 15th, 2003 12:42 PM





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