Results 1 to 3 of 3

Thread: Data1.Refresh

  1. #1

    Thread Starter
    Fanatic Member joltremari's Avatar
    Join Date
    Sep 2000
    Location
    Mississippi
    Posts
    674

    Data1.Refresh

    I have DBGrid1. I have cmdAddNew (Data1.Recordset.AddNew) and I have cmdRefresh (Data1.Refresh).

    I have done this before but it doesn't seem to be working now. It is not adding my entry from Text1 to DBGrid1. Here's the code:

    Private Sub cmdAddNew_Click()
    Data1.Recordset.AddNew
    Text1.SetFocus
    End Sub

    I enter something in Text1

    Private Sub cmdRefresh_Click()
    Data1.Refresh
    End Sub

    Nothing happens here.

    Any help?

    JO
    "I have not failed. I've just found 10,000 ways that won't work."
    'Thomas Edison'

    "If we knew what it was we were doing it wouldn't be called research, would it?"
    'Albert Einstein'

    VB6

  2. #2
    PowerPoster Lethal's Avatar
    Join Date
    Oct 2000
    Location
    Ohio
    Posts
    2,496
    I'm not familiar with the standard data control, is there an update method? Also, just try repositon the record pointer, invoke a movenext method..

  3. #3
    Hyperactive Member PJB's Avatar
    Join Date
    Aug 2000
    Location
    dunno at the moment
    Posts
    302
    Have ya tried DBGrid1.Refresh after refreshing the datasource?
    VB6.0 SP4
    Windows 2000
    I'm thinking of a number between

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width