hi at the moment i can get this to load the contents of the first row,first column the number "1" into all the fields in the table "tblTransfe r2" so all the fields have the number "1" in it where the number "1" should only be in field "daynum" seatnum should read "A1" seatid should read "367" bookdate should be a date but skips past this bookedby should read "0" and cost should read "7" could anyone point me in the right direction???
thanks
thanks
Code:
sql = "SELECT * from tbltransfer2" Set RecSet = dbAbbeytheatre.OpenRecordset(sql) If Daynum = 0 Then '///////////////////////////////////////////////////// With MSFlexGrid1 n = n + 1 For I = 2 To .Rows - 1 strRowText = "" For j = 0 To .cols - 1 strRowText = strRowText & .TextMatrix(I, j) & ";" '//////////////////// RecSet.AddNew RecSet!Daynum = MSFlexGrid1.TextMatrix(I, j) RecSet!seatNum = MSFlexGrid1.TextMatrix(I + 1, 1) RecSet!seatId = MSFlexGrid1.TextMatrix(I + 1, 2) RecSet!bookdate = MSFlexGrid1.TextMatrix(I + 1, 3) 'didn't like date RecSet!bookedby = MSFlexGrid1.TextMatrix(I + 1, 4) RecSet!cost = MSFlexGrid1.TextMatrix(I + 1, 5) RecSet.Update '///////////////////// Next j Next I End With End If
Comment