Home > Software engineering >  Vb6.0 by use dategrid problem
Vb6.0 by use dategrid problem

Time:09-19

With dategrid when the mouse point a line will not have any reaction points list head or the left-most column of directly to empty dategrid data is how to return a responsibility
The source code is as follows:
SQL="select book bookID, book, bookname, book, bookauthor, book. Bookpress, book, booktype, book. Bookexist, book. Booklend from book where" & amp; Char
Rs. CursorLocation=adUseClient
Rs. The Open SQL, conn, adOpenKeyset, adLockOptimistic
If char="" Then
A=MsgBox (" please enter a query information!" VbOKOnly, "warning")
End the If
The Set DataGrid1.
the DataSource=rsDataGrid1. The ReBind
DataGrid1. Refresh
VB beginner, light spray.

CodePudding user response:

Code is not complete, SQL statements written vague, can't judge,
Char on behalf of what?
  • Related