Results 1 to 6 of 6
  1. #1
    selma_ is offline Novice
    Windows XP Access 2003
    Join Date
    Aug 2009
    Posts
    3

    SQL service connection


    I would like to create a menu in Microsoft Access. I know how to do it if I have a database in Access,but now I would like to create a menu for my database in SQL. So my question is how to connect to SQL from Access?
    how can I create a menu in Access from which I can directly connect to SQL database?

    thanks ;-)

  2. #2
    dcrake's Avatar
    dcrake is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Aug 2009
    Posts
    435
    alot depends on what connection method you want to employ. You can use DAO, ADODB or even DNS. ADODB is the easiest way. Alot also depends on your vba skills. Access will let you link tables from an SQL database but you need to create the DNS first and point to that.

    David

  3. #3
    selma_ is offline Novice
    Windows XP Access 2003
    Join Date
    Aug 2009
    Posts
    3

    Question

    ok, thanks I created DNS and imported my database.

    but now I am wondering if I can create one button in my menu,that will connect me directly to the SQL server in just one click...and will show me my databases in SQL??? do I need some code for that or..???

    So, I actually want to create a menu in Microsoft Access from which I will be able to see all my databases in SQL,import some data and so on.

  4. #4
    dcrake's Avatar
    dcrake is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Aug 2009
    Posts
    435
    You don't want to be importing them you should be linking them. You should see a SQL icon next to the table name. This shows you it is linked.

  5. #5
    selma_ is offline Novice
    Windows XP Access 2003
    Join Date
    Aug 2009
    Posts
    3
    so, how can I do that ?

  6. #6
    dcrake's Avatar
    dcrake is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Aug 2009
    Posts
    435
    Use File ? Get Eternal Data > Link Tables

    Then change the files of type to ODBC Databases() usually the last in the list. Then naviage to your SQL server nominating your DSN.

    David

Please reply to this thread with any new information or opinions.

Similar Threads

  1. SQL Server 2005 Connection
    By Patrick.Grant01 in forum Import/Export Data
    Replies: 2
    Last Post: 06-18-2009, 11:22 AM
  2. Database Connection Error
    By pgabell in forum Access
    Replies: 1
    Last Post: 01-17-2009, 07:24 AM
  3. connection performance
    By DanM in forum Programming
    Replies: 0
    Last Post: 08-24-2008, 08:25 AM
  4. Connection to same DB
    By emilylu3 in forum Access
    Replies: 1
    Last Post: 12-30-2005, 09:59 AM
  5. connection to db
    By emilylu3 in forum Access
    Replies: 2
    Last Post: 12-29-2005, 01:06 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums