Checking links to back-end takes very long

R

Rene

Hello group,

A back-end DB resides on a Win2K Server, and front-ends on Win2K clients.
When the front-end starts, I have it check that the link information is
valid.
So it loops through all (4) tables calling the following function, giving
the user a message if the back-end cannot be accessed.

Public Function fTableLinkOK(strTableName as String) as Boolean
On Error Resume Next

Set dbDatabase = CurrentDB()
Set tdefTable = dbDatabase(strTableName)
strField = tdefTable.Fields(0).Name
fTableLinkOK = (Err.Number = 0)

Set tdefTable = Nothing
Set dbDatabase = Nothing
End Function

My problem is this portion of the startup takes very very long - like over a
minute!!

Any suggestions?
Is it possible this code causes the whole back-end tables' contents to be
sent to client??

Thanx.

René
Montreal
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top