Is there a way to find out if all of the tables in the BE are connected? I would like to have a form open when the database is first opened. In its On_Load event, I want to check if all the tables are connected. If they are, then the form will close and the main form will open for the user to use the database. If the tables aren't connected, then I will use the startup form to enter the BE name and file path to be passed to my ReLink function (which is being worked on in another thread). I just need to know how to check if the tables are connected. I have gone through all the TableDef properties on MSDN, but the information is very scarce. I couldn't find anything that said "Check Connection", so I'm guessing that there isn't anything explicitly for this, but I'm also guessing that there is a way of finding out if it is connected by checking something like record count or something like that. I just don't know how things will be returned so I don't know how to check for them. I did find out that the record count for a linked table will always be -1. If the BE is disconnected, would it still return a -1 because it knows that it is a linked table or would it return something else?
Just tested my last guess and it still returned -1. Is there anything else like that that could be tested and would return a different value if not connected?
Just tested my last guess and it still returned -1. Is there anything else like that that could be tested and would return a different value if not connected?
Comment