#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2010
    Posts
    104
    Rep Power
    5

    Datagrid not supported Refresh after add, delete, ... ?


    suppose I have database access:
    Dim Conn As ADODB.Connection

    Set RS = Nothing
    Set RS = New Recordset

    Set Conn = New ADODB.Connection
    Conn.Open ConnectionStringHere

    RS.Open "SELECT Fields " & _
    "FROM Table WHERE Whatever = ?"
    Conn, adOpenStatic, adLockOptimistic
    Datagrid.DataSource = RS

    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?
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2011
    Posts
    289
    Rep Power
    45
    I don't completely understand your question, but here is a link to an excellent database editor that uses a datagrid that I have used for years.

    http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=6584&lngWId=1

    J.A. Coutts
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2012
    Posts
    5
    Rep Power
    0
    what database are you using? are u using sql 2008? or ms.access???

IMN logo majestic logo threadwatch logo seochat tools logo