PDA

Click to See Complete Forum and Search --> : Editing a DBGrid (


Mc Brain
Jun 14th, 2000, 03:38 AM
Hi Everybody! Sorry if some of you already read this, but I've post this thread previously (however, it was in the wrong forum - My mistake)
I'm just wonderin' why this code is not working the way I'd like.



Grid.Col = 0
For i = 0 To rs.RecordCount - 1
Grid.Row = i
Grid.Text = EfectiveDate(Grid.Text)
Next i


In Grid.Text I have a date and time in this format: "23/05/00 07:00:00 p.m.", and the function EfectiveDate would change it to "23/05/2000 19:00". It actually reads all the records. However, I don't know why, it keeps on writing in the first row (the little pencil shown to see which row you're editing), the "edited" date/time. Does anybody knows how to force the writing in each "new row"??