Data Grid...

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Copyrite
    New Member
    • Oct 2007
    • 16

    Data Grid...

    Hi,
    I work for an IT company in the UK and we have a customer that we developed software that uses a VB front end application running with a Access database.
    The people that developed this before me have all left and now I am stuck with no explination of how any of the software works, my biggest problem is finding out how the software connects to the database and I think I found out it was using the Data Grid but:-
    1. I have no idea how it works.
    2. I keep getting an error that I don't know how to fix either "[Microsoft] [ODBC Driver Manager] Data source name not found and no default driver specified"

    Can anyone pelase enlighten me at all on how to get this software working or give me a push in the right direction?
  • QVeen72
    Recognized Expert Top Contributor
    • Oct 2006
    • 1445

    #2
    Hi,

    Check the DataSource Property of the DataGrid..
    What does it say?

    Regards
    Veena

    Comment

    • Copyrite
      New Member
      • Oct 2007
      • 16

      #3
      It says CustListMDB, that was (when I figured out thats how we were connecting to the database) the first thing I looked for but have no idea how to change the property to make it worked, I tried making a random database and then a random program using it and setting the property to the test database on the Form_Load() section but to no avail, any help as stated previously is greatly appreciated.

      Comment

      • QVeen72
        Recognized Expert Top Contributor
        • Oct 2006
        • 1445

        #4
        Hi,

        Create an ODBC with that name for the working mdb...

        Regards
        Veena

        Comment

        • Copyrite
          New Member
          • Oct 2007
          • 16

          #5
          Hmm, they made this program sound so easy when they signed me up to the task, but a messy program with no documentation sucks big style, I made the ODBC named CustListMDB and it still brings up the error, sorry for all the n00b questions I got chucked in the deep end here without any preparation O.O

          Comment

          • debasisdas
            Recognized Expert Expert
            • Dec 2006
            • 8119

            #6
            I can understand your problem.

            But we really need more information to help you on the problem at your side.

            Comment

            • Copyrite
              New Member
              • Oct 2007
              • 16

              #7
              If you'd kindly tell me what information you need and where I can gather it from then I'll gladly give it, as I said I'm completely lost at the minute.

              Comment

              • QVeen72
                Recognized Expert Top Contributor
                • Oct 2006
                • 1445

                #8
                Hi,

                What is the Database and what path /location it is stored...?
                If the same programme is running somewhere else(any other client),
                you can check the ODBC and get the database name and location.
                do the same in your system also..


                Regards
                Veena

                Comment

                • underscore
                  New Member
                  • Jul 2007
                  • 30

                  #9
                  am vb programmer and using msaccess before but now am using an mssql 2005. i think the connection of the vb to database is using and odbc but i will sugest you to use the ado connection wizard in vb toolbox to connect the access in odbc.


                  cheers...

                  underscore.

                  Comment

                  • Copyrite
                    New Member
                    • Oct 2007
                    • 16

                    #10
                    The client isn't running on any other computers in the office and I dont deal with the customer directly to be able to look at their PC, I know the database that it is using though is in the same directory as the program itself, I have set up the ODBC to be called CustListMDB and then the path to that Database (called Spar.mdb) but I still get this error, if this isnt the information you needed I appologise and I'll try again.

                    Comment

                    • QVeen72
                      Recognized Expert Top Contributor
                      • Oct 2006
                      • 1445

                      #11
                      Hi,

                      If your .mdb database is password protected then, While Creating the ODBC, goto Advanced option and give the Database Password. Then ur ODBC will work..

                      REgards
                      Veena

                      Comment

                      • Copyrite
                        New Member
                        • Oct 2007
                        • 16

                        #12
                        Nope not password protected, this is why I was getting really lost because what I thought should work (and what other people think should work) doesn't work O.O, I have noticed something to do with Visual SourceSafe when I load up the VBP does anyone know if this could be a problem or just tell me what it is will be fine =P

                        Comment

                        • Copyrite
                          New Member
                          • Oct 2007
                          • 16

                          #13
                          Hi Again,
                          I'm still extremely stuck on this and I can't for the life of me figure out why so I'm going to list exactly what I've done at the risk of sounding like a complete waste of time because I messed something simple up:-
                          1. Start
                          2. Control Panel
                          3. Administrative Tools
                          4. Data Sources (ODBC)
                          5. On the User DSN tab click Add
                          6. Click Microsoft Access Driver and Finish
                          7. Data Source Name = CustListMDB
                          8. Click Select
                          9. Browse to the Database that it is using.
                          10. Click Ok.

                          Have I messed something simple up here or am I up a creek without a paddle.

                          Comment

                          • prakashsakthivel
                            New Member
                            • Oct 2007
                            • 57

                            #14
                            Originally posted by Copyrite
                            Hi Again,
                            I'm still extremely stuck on this and I can't for the life of me figure out why so I'm going to list exactly what I've done at the risk of sounding like a complete waste of time because I messed something simple up:-
                            1. Start
                            2. Control Panel
                            3. Administrative Tools
                            4. Data Sources (ODBC)
                            5. On the User DSN tab click Add
                            6. Click Microsoft Access Driver and Finish
                            7. Data Source Name = CustListMDB
                            8. Click Select
                            9. Browse to the Database that it is using.
                            10. Click Ok.

                            Have I messed something simple up here or am I up a creek without a paddle.
                            Hi Friend

                            Simply You can do through Data grid.

                            there are two ways you can do

                            1) through manually

                            2) Through Runtime that means through Coding...

                            Make sure you place Data Grid and Adodc

                            Go project and select compoents and search Adodc control

                            if we want to use Data grid through Adodc

                            we have to set 3 properties

                            1) Set Connection

                            str = "C:\Documen ts and Settings\prakas h\Desktop\db1.m db" -"Your Database"
                            Adodc1.Connecti onString = "Provider=Micro soft.Jet.OLEDB. 4.0;" & _
                            "Data source=" & str
                            2) Set Commandtext
                            Adodc1.commandt ype=adcmdtext

                            dim lcstr as string

                            lcstr="select * from table1"

                            3)Record source

                            Adodc1.Recordso urce=lcstr
                            Adodc1.Refresh

                            now All records are in Data grid

                            Just try


                            Regads

                            Prakashsakthive l

                            Comment

                            • Copyrite
                              New Member
                              • Oct 2007
                              • 16

                              #15
                              Ok, that helped quite a lot in giving me a basic idea of how the component works so thanks =D I'm gunnna have a look into this program a bit further and see if I can figure it out.

                              Comment

                              Working...