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?