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. C / C++ / MFC
  4. how I show *.mdb table on a dialog ?

how I show *.mdb table on a dialog ?

Scheduled Pinned Locked Moved C / C++ / MFC
question
5 Posts 4 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.
  • E Offline
    E Offline
    Emre Zorlu
    wrote on last edited by
    #1

    I'm working with ODBC and using *.mdb tables. I wanna show one of tables on a dialog. How can I do this? emroz

    E T 2 Replies Last reply
    0
    • E Emre Zorlu

      I'm working with ODBC and using *.mdb tables. I wanna show one of tables on a dialog. How can I do this? emroz

      E Offline
      E Offline
      Exceter
      wrote on last edited by
      #2

      What you mean "show the table" I assume you wanna show the data of the table? You need EditBox, StaticBox, (may be ComboBox) for the data to be shown on the dialog box.

      E 1 Reply Last reply
      0
      • E Exceter

        What you mean "show the table" I assume you wanna show the data of the table? You need EditBox, StaticBox, (may be ComboBox) for the data to be shown on the dialog box.

        E Offline
        E Offline
        Emre Zorlu
        wrote on last edited by
        #3

        I wanna see all of records. I used dataGrid in visual basic. You can see the table on the form with it. How can can I do it in visual C++ emroz

        C 1 Reply Last reply
        0
        • E Emre Zorlu

          I wanna see all of records. I used dataGrid in visual basic. You can see the table on the form with it. How can can I do it in visual C++ emroz

          C Offline
          C Offline
          Cheickna
          wrote on last edited by
          #4

          Hi, You can use ListCtrl to do this. But you must write an sql query and insert data yourself. Property 'Datasource' don't exists in listrcl cheickna

          1 Reply Last reply
          0
          • E Emre Zorlu

            I'm working with ODBC and using *.mdb tables. I wanna show one of tables on a dialog. How can I do this? emroz

            T Offline
            T Offline
            Toni78
            wrote on last edited by
            #5

            The simple way to incorporate ADO into your application is through the use of ActiveX controls. You can add the ADO data control to your Visual C++ project, just like any other ActiveX control. Once you add the ADO control to your project, and place it on a window, you’ll need to specify the data connection in the control properties. You’ll also need to specify the source for the records that will be retrieved by the control. To use the ADO control efficiently, you’ll also want to use data-bound controls that are ADO-enabled, such as the Microsoft DataGrid control. When you add these controls to the window with the ADO control, you’ll specify the ADO control as the data source for the control. If the control is designed to only provide access to a single field in a record set, you’ll also need to specify which field is to be used for the control. Once you add all these controls to the window and configure them, you can run your application and have full database access through ADO without having written a single line of code. If you cannot follow all the steps then you should try to read something about ActiveX controls (how to add them to your application). // Afterall, I realized that even my comment lines have bugs When one cannot invent, one must at least improve (in bed).-My latest fortune cookie

            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