Results 1 to 2 of 2
  1. #1
    accessnewbie is offline Novice
    Windows XP Access 2010 (version 14.0)
    Join Date
    Oct 2009
    Posts
    20

    Check ODBC connection when opening form


    This is my 3rd post this year, I think I need to talk my boss into signing me up for classes!

    I have a button on a form (FormA) that opens another form (FormB). In FormB is a list box that displays results from a query using a linked database table, so when FormB opens, I'm asked to connect to the database. As long as I log in correctly, FormB looks fine. I just tried to log in using an old password and FormB opened, but the list box was empty. I would like to display an error message should this happen, but am at a loss at where to put it and what code to use.

    Thanks for any help.

    Thanks,
    Marisa

  2. #2
    TheShabz is offline Court Jester
    Windows XP Access 2003
    Join Date
    Feb 2010
    Posts
    1,368
    You have to log in every time you open the form?

    Try to get a system or user DSN for your ODBC connection set up on your machine. Then when you link tables, you login once and check "save password" when selecting the tables to link to. Never login again.

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

Similar Threads

  1. Odbc connection to 'datasourcename' failed
    By nmcentire in forum Import/Export Data
    Replies: 1
    Last Post: 11-24-2010, 07:28 PM
  2. ODBC, trusted connection for multiple users
    By KathyL in forum Programming
    Replies: 4
    Last Post: 08-22-2010, 03:31 PM
  3. ODBC connection
    By avicenna in forum Import/Export Data
    Replies: 2
    Last Post: 08-02-2010, 02:33 AM
  4. Replies: 2
    Last Post: 11-10-2009, 02:49 PM
  5. Linked tables and ODBC connection strings
    By cwcadm in forum Import/Export Data
    Replies: 7
    Last Post: 05-26-2009, 07:30 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