+ Reply to Thread
Page 3 of 3 FirstFirst 1 2 3
Results 21 to 23 of 23

Thread: For Next Loop Within another For Next Loop

  1. #21
    Administrator richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich's Avatar
    Join Date
    Mar 2008
    Location
    Somewhere only we know...
    Posts
    3,207
    Blog Entries
    14
    Real Name
    Rich
    Rep Power
    14

    Code:
        SQL = "INSERT INTO [performances] (showID, SeatNumber, SeatPrice, performance_time, ShowDate, Status) " & _
            "VALUES ( " & _
            showID & ", " & _
            x & ", " & _
            Request.Form("SeatPrice") & ", " & _
            Request.Form("performance_time") & ",#" & _
            Request.Form("ShowDate") & "#, " & _
            "'" & Request.Form("Status") & "')"
        conn.Execute SQL
    

  2. #22
    Barn Frequenter BLaaaaaaaaaarche will become famous soon enough BLaaaaaaaaaarche will become famous soon enough BLaaaaaaaaaarche's Avatar
    Join Date
    Mar 2008
    Posts
    188
    Rep Power
    5

    Or, you can put the #'s on the same line:

    Code:
    SQL = "INSERT INTO [performances] (showID, SeatNumber, SeatPrice, performance_time, ShowDate, Status) " & _
    	"VALUES ( " & _
    	showID & ", " & _
    	x & ", " & _
    	Request.Form("SeatPrice") & ", " & _
            Request.Form("performance_time") & ", " & _
            "#" & Request.Form("ShowDate") & "#, " & _
            "'" & Request.Form("Status") & "')"
    conn.Execute SQL
    
    "You'll never be as perfect as BLaaaaaaaaarche."

  3. #23
    Administrator richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich's Avatar
    Join Date
    Mar 2008
    Location
    Somewhere only we know...
    Posts
    3,207
    Blog Entries
    14
    Real Name
    Rich
    Rep Power
    14

    Quote Originally Posted by BLaaaaaaaaaarche
    Or, you can put the #'s on the same line:
    Yep, or that...

+ Reply to Thread
Page 3 of 3 FirstFirst 1 2 3

Similar Threads

  1. if loop problem
    By todd2006 in forum ASP Development
    Replies: 5
    Last Post: July 13th, 2009, 05:01 PM
  2. For Each loop in report
    By tuxalot in forum Microsoft Access
    Replies: 8
    Last Post: March 7th, 2009, 07:21 PM
  3. loop through a collection
    By Shem in forum .NET Development
    Replies: 15
    Last Post: October 17th, 2008, 11:54 AM
  4. Loop / Summary help
    By Rebelle in forum ASP Development
    Replies: 7
    Last Post: April 11th, 2008, 11:12 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

SEO by vBSEO