'.............. ............... .....
sql = "SELECT * from tbltransfer2"
Set RecSet = dbAbbeytheatre. OpenRecordset(s ql)
If Daynum = "" Then
RecSet.AddNew
'////////////////////////////////////////////
Dim I%, j%, strRowText$
With MSFlexGrid1
For I = 1 To .Rows + 1
strRowText = ""
For j = 1 To .cols + 1
strRowText = strRowText & .TextMatrix(I, j) & ";"
'////////////////////
RecSet!Daynum = MSFlexGrid1.Col = 1
RecSet!seatNum = MSFlexGrid1.Col = 2
RecSet!seatId = MSFlexGrid1.Col = 3
RecSet!BookDate = MSFlexGrid1.Col = 4
RecSet!BookedBy = MSFlexGrid1.Col = 5
RecSet!cost = MSFlexGrid1.Col = 6
RecSet.Update
'/////////////////////
Next j
Next I
End With
End If
Close #1
sql = "SELECT * from tbltransfer2"
Set RecSet = dbAbbeytheatre. OpenRecordset(s ql)
If Daynum = "" Then
RecSet.AddNew
'////////////////////////////////////////////
Dim I%, j%, strRowText$
With MSFlexGrid1
For I = 1 To .Rows + 1
strRowText = ""
For j = 1 To .cols + 1
strRowText = strRowText & .TextMatrix(I, j) & ";"
'////////////////////
RecSet!Daynum = MSFlexGrid1.Col = 1
RecSet!seatNum = MSFlexGrid1.Col = 2
RecSet!seatId = MSFlexGrid1.Col = 3
RecSet!BookDate = MSFlexGrid1.Col = 4
RecSet!BookedBy = MSFlexGrid1.Col = 5
RecSet!cost = MSFlexGrid1.Col = 6
RecSet.Update
'/////////////////////
Next j
Next I
End With
End If
Close #1
Comment