Results 1 to 3 of 3

Thread: instant db refresh

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2007
    Posts
    2

    instant db refresh

    i have connected msaccess database thru intrinsic data control by drawing data control on my form.i also have a data report .

    the problem is when i enter new records and save it ,it goes into the database ,but when i view the data report,the latest entered record doesnt get displayed in the data report.
    when i close my application and again open it,now if i access the data report i am getting all the contents of my database.


    now my question is

    1>is it possible(and how to) to view the latest added content in my data report without closing my application and starting it again.

  2. #2
    PowerPoster
    Join Date
    Sep 2005
    Location
    Modesto, Ca.
    Posts
    5,510

    Re: instant db refresh

    Try this

    Code:
    If deData1.rsData.State = adStateOpen Then
                deData1.rsData.Close
            End If
            rpReport1.Show
    deData1 is the dataenvironment used by the report
    rsData is the name or the recordset the DE uses.

  3. #3

    Thread Starter
    New Member
    Join Date
    Sep 2007
    Posts
    2

    Re: instant db refresh

    i got an other solution from some other forum.

    after .show property,using the below code.


    DataEnvironment1.rsCommand1.Requery
    .it works well.

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