Hello All
we want to print datagrid view's 20 records per page, but it seems LIMIT Command is not working and shows error plz can any one help or suggests alternet.
this is our coding.
ANPSql = "Select * from Table1 limit 0,20"
MsgBox(ANPSql)
Pth = My.Application.Info.DirectoryPath
ANPConn.ConnectionString = "Provider=Microsoft.ace.oledb.12.0; Data Source=" & Pth & "\db1.mdb; User Id=admin; Password=;"
ANPDa = New OleDbDataAdapter(ANPSql, ANPConn)
ANPDs = New DataSet
ANPDa.Fill(ANPDs, "ANPDatabase")
ANPDt = ANPDs.Tables("ANPDatabase")
ANPCmb = New OleDbCommandBuilder(ANPDa)
ANPDa.InsertCommand = ANPCmb.GetInsertCommand
ANPDa.UpdateCommand = ANPCmb.GetUpdateCommand
DataGridView1.DataSource = ANPDt