I've got a problem with my msflexgrid1 while attempting to save the data
to the database.

I get an datatype conversion error...but I can't figure out why. I aslo dont
understand the big numbers that I get while looking at the msflexgrid1.text
value.

HElp!!!!!!!!!!!

Please offer some thoughts!!


If I leave my cursor/mouse on that erorr line I get the value for msflexgrid1.text
which is a hudge number: 11753595471532175421000000000000000000000000000000000000 . . . .

VB Code:
  1. Private Sub Command4_Click()
  2. 'save button CODE IS BELOW ?>  > >
  3.  
  4. 'declare local variables . .
  5. Dim r As Integer
  6. Dim t As Long
  7.  
  8. myrs.MoveFirst
  9. For r = 1 To MSFlexGrid1.Rows - 1   ' cycle thru the rows
  10. myrs.Edit      ' this opens the recordset record to be opend to be edited
  11. MSFlexGrid1.Row = r
  12. For t = 0 To myrs.Fields.Count                'cycle thru the fields/columns
  13. MSFlexGrid1.Col = t
  14. myrs.Fields(t) = Format$(Val(MSFlexGrid1.Text))             [COLOR=royalblue]Error Here::3421 Data Type Conversion Error[/COLOR]
  15.  
  16. Next t
  17. myrs.Update
  18. myrs.MoveNext
  19. Next r
  20.  
  21. end Sub