Consulting

Results 1 to 5 of 5

Thread: data model in excel

  1. #1

    data model in excel

    Hi, I need help in excel vba macro.

    refer attached excel

    I am creating excel based tool for data modelling. which will connect to database e.g oracle, sql server and then fetch the table information.

    e.g table name- emp then its all column . till this I have achieved it. now m getting all tables with its column name , primary key...

    Now my question is with the help of above data I want to preint table in excel and want to show relationship between them PK FK by drawing a line between them.
    e.g
    EMPLOYEE DEPT
    eno (pk) dno (pk)
    ename eno (fk)
    eaddrs dname


    now it should show in well tabular form in excel and should draw line between employee.eno to departnment.eno.
    can we do it with help of macro.


    regards,
    Suhas
    Attached Files Attached Files

  2. #2
    VBAX Regular
    Joined
    Feb 2011
    Posts
    75
    Location
    Hello,

    Wow, interesting question, but isn't that the realm of MS Access rather than MS Excel? Are you aware of the scope of this question?

    Not meaning to be unfriendly, but I think the effort on this one, calculating USD 40 per hour, which is a reasonable price for a subcontractor, exceeds the license fee for MS Access, by far.

    Regards,
    Isabella

  3. #3
    VBAX Tutor
    Joined
    Sep 2007
    Posts
    265
    Location
    what about using

    Data > Get External Data > From Microsoft Query

  4. #4
    VBAX Expert shrivallabha's Avatar
    Joined
    Jan 2010
    Location
    Mumbai
    Posts
    750
    Location
    Take a look at the code provided by XLD. Pray that he comes around...
    http://www.vbaexpress.com/forum/showthread.php?t=35298
    Regards,
    --------------------------------------------------------------------------------------------------------
    Shrivallabha
    --------------------------------------------------------------------------------------------------------
    Using Excel 2016 in Home / 2010 in Office
    --------------------------------------------------------------------------------------------------------

  5. #5
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    How about using Visio, it has such a function it its Enterprise version.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •