Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DataGrid "The current row is not available"

Status
Not open for further replies.

PCSAARON

Programmer
Joined
Jul 9, 2002
Messages
131
Location
US
Has anyone had problems with Micorosofts DataGrid control in Visual Basic? I am getting an error message "The current row is not available" when adding a record (It only happens on the FIRST record though...) When the table is seeded with one record it never happens... I am using MySQL as a backend database... Any suggestions would be greatly appreciated...

Aaron
 
It's too late to take crack at this now.

Cold you post the relevant code? I'll simulate it use SQL Server. I doubt that the MySQL is a problem since you are probably using ADO to get to your data.
 
Make sure you are using VB6 Service pack 5.




[/b][/i][/u]*******************************************************
General remarks:
If this post contains any suggestions for the use or distribution of code, components or files of any sort, it is still your responsibility to assure that you have the proper license and distribution rights to do so!
 
I do have VB6 Service Pack 5.

There is no relevant code for the insert. I am letting the datagrid add it with its own coding. I didn't try bybassing the datagrid and using my own code yet. I am sure that would work, but why should I have to?

Aaron
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top