when you perform the insert, delete, add new data, datagrid refresh the data can not although I have to use appearance Datagrid.Refresh new data is entered but does not appear, check the data in have access but do not anticipate new output datagrid except close all open programs to emerging new data on the grid, the operations insert, delete, add items via the command. Execute (strSQL ), why not refresh the datagrid? and how to fix?
Re: Datagrid not supported Refresh after add, delete, ... ?
You have to refresh the Recordset, not the DataGrid.
Keep the recordset stored in a global variable (or private to a form if your code is all in a form)
Code:
Public/Pivate rsGrid as ADODB.Recordset
...
'your open rs
rs.open sql$, Conn, adOpenStatic, adLockOptimistic
Set rsGrid = rs
Set DataGrid.DataSource = rs
Bookmarks