Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. still chart

still chart

Scheduled Pinned Locked Moved Visual Basic
databasedata-structureshelptutorial
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Adhizzz
    wrote on last edited by
    #1

    hi..i have still problem with chart,the problem how too generate graph from database,example access adhizz

    S 2 Replies Last reply
    0
    • A Adhizzz

      hi..i have still problem with chart,the problem how too generate graph from database,example access adhizz

      S Offline
      S Offline
      steff kamush
      wrote on last edited by
      #2

      hi Adhizzz. i hope this helps Print a Microsoft Access report from VB 6.0 As you may know, Microsoft Access provides a much more robust reporting system than Visual Basic. As a result, if you use Access as a back-end to your application, you may want to print Access reports from your VB application. Fortunately, you can do just that with Automation. The following code shows one way to do so, using late binding. remember to replace dbName and rptName with correct values: Dim objAccess As Object Private Sub Command1_Click() Dim dbName As String Dim rptName As String Dim Preview As Long Const acNormal = 0 Const acPreview = 2 dbName = "D:\PathToDB\db1.mdb" rptName = "MyReportName" Preview = acPreview 'acNormal With objAccess .OpenCurrentDatabase filepath:=dbName If Preview = acPreview Then .Visible = True .DoCmd.OpenReport rptName, Preview Else .DoCmd.OpenReport rptName End If End With End Sub Private Sub Form_Load() Set objAccess = CreateObject("Access.Application") End Sub Private Sub Form_Unload(Cancel As Integer) On Error Resume Next objAccess.Quit On Error GoTo 0 Set objAccess = Nothing End Sub

      1 Reply Last reply
      0
      • A Adhizzz

        hi..i have still problem with chart,the problem how too generate graph from database,example access adhizz

        S Offline
        S Offline
        steff kamush
        wrote on last edited by
        #3

        hi Adhizzz. i hope this helps Print a Microsoft Access report from VB 6.0 As you may know, Microsoft Access provides a much more robust reporting system than Visual Basic. As a result, if you use Access as a back-end to your application, you may want to print Access reports from your VB application. Fortunately, you can do just that with Automation. The following code shows one way to do so, using late binding. remember to replace dbName and rptName with correct values: Dim objAccess As Object Private Sub Command1_Click() Dim dbName As String Dim rptName As String Dim Preview As Long Const acNormal = 0 Const acPreview = 2 dbName = "D:\PathToDB\db1.mdb" rptName = "MyReportName" Preview = acPreview 'acNormal With objAccess .OpenCurrentDatabase filepath:=dbName If Preview = acPreview Then .Visible = True .DoCmd.OpenReport rptName, Preview Else .DoCmd.OpenReport rptName End If End With End Sub Private Sub Form_Load() Set objAccess = CreateObject("Access.Application") End Sub Private Sub Form_Unload(Cancel As Integer) On Error Resume Next objAccess.Quit On Error GoTo 0 Set objAccess = Nothing End Sub :rose::rose:

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups