Results 1 to 7 of 7

Thread: [RESOLVED] How to refresh a data report (VB6)

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2008
    Posts
    13

    Resolved [RESOLVED] How to refresh a data report (VB6)

    What should i do to refresh a data report so that I can see the new entries as well?

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

    Re: How to refresh a data report (VB6)

    If you are using a DataEnvironment then you must close it's recordset.
    Code:
            If de1.rsCommand1.State = adStateOpen Then
                de1.rsCommand1.Close
            End If
            DataReport1.show

  3. #3
    Frenzied Member KGComputers's Avatar
    Join Date
    Dec 2005
    Location
    Cebu, PH
    Posts
    2,024

    Re: How to refresh a data report (VB6)

    Hi,

    you may view this tread...
    http://www.vbforums.com/showthread.php?t=423752&highlight=data+report+refresh


    There was a thread on data report refresh that has another solution..I forgot where it is...

    Greg
    CodeBank: VB.NET & C#.NET | ASP.NET
    Programming: C# | VB.NET
    Blogs: Personal | Programming
    Projects: GitHub | jsFiddle
    ___________________________________________________________________________________

    Rating someone's post is a way of saying Thanks...

  4. #4

    Thread Starter
    New Member
    Join Date
    Jan 2008
    Posts
    13

    Re: [RESOLVED] How to refresh a data report (VB6)

    Thanks a lot!

  5. #5
    Frenzied Member KGComputers's Avatar
    Join Date
    Dec 2005
    Location
    Cebu, PH
    Posts
    2,024

    Re: [RESOLVED] How to refresh a data report (VB6)

    Hi,


    Ur welcome dude.....


    Greg
    CodeBank: VB.NET & C#.NET | ASP.NET
    Programming: C# | VB.NET
    Blogs: Personal | Programming
    Projects: GitHub | jsFiddle
    ___________________________________________________________________________________

    Rating someone's post is a way of saying Thanks...

  6. #6
    Frenzied Member KGComputers's Avatar
    Join Date
    Dec 2005
    Location
    Cebu, PH
    Posts
    2,024

    Re: [RESOLVED] How to refresh a data report (VB6)

    You may rate this thread if my answers were helpful

    Greg
    CodeBank: VB.NET & C#.NET | ASP.NET
    Programming: C# | VB.NET
    Blogs: Personal | Programming
    Projects: GitHub | jsFiddle
    ___________________________________________________________________________________

    Rating someone's post is a way of saying Thanks...

  7. #7
    New Member kay5ive3's Avatar
    Join Date
    Oct 2013
    Posts
    7

    Re: How to refresh a data report (VB6)

    Hi,
    Please read the following code which i want to use to call the specific data from database putting bank name into combobox(cboBankName).

    Private Sub cmdOk_Click()
    If IsNumeric(cboBankName.Text) = True Then
    DataEnvironment1.cmdAnimal cboBankName.Text
    dptAnimal.Show
    Else
    MsgBox "Please enter a valid Bank Name", "Wrong entry"
    End If
    End Sub

    It displays an error that: "Wrong number of arguments or invalid property assignment"

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