Hello.
I have an MS Access Database that contains linked tables from a SQL Server ODBC connection. 16 users have a copy of this database on their machines.
1. When the first form is loaded, a query runs (select * from Userlist where username = login). After I get the username, I close the connection. Code below.
However, on the SQL Server, the process doesn’t go away and it shows as ‘sleeping’ and ‘runnable’
2. My second problem is this. I have a table “DATA” containing about 700K rows. The user selects some search criteria and hits “Show DATA Records”. This opens a form with list of records that are filtered according to the user selections. In the SQL Server, this query shows are runnable and doesn’t close. The connection stays open. I changed the MS Access form to ‘Snapshot’ instead of ‘Dynaset’ and that didn’t seem to help. Are there any suggestions?
With 16 users, we have 16+ open connections slowing down the system. I’m new to using Access as a frontend to SQL Server, so any help will be greatly appreciated.
Thanks.
Sofia
I have an MS Access Database that contains linked tables from a SQL Server ODBC connection. 16 users have a copy of this database on their machines.
1. When the first form is loaded, a query runs (select * from Userlist where username = login). After I get the username, I close the connection. Code below.
Code:
Set rsUser = CurrentDb().OpenRecordset("select * from UserList where username = '" & user & "'")
usrType = rsUser!userType
rsUser.Connection.Close
rsUser = Nothing
2. My second problem is this. I have a table “DATA” containing about 700K rows. The user selects some search criteria and hits “Show DATA Records”. This opens a form with list of records that are filtered according to the user selections. In the SQL Server, this query shows are runnable and doesn’t close. The connection stays open. I changed the MS Access form to ‘Snapshot’ instead of ‘Dynaset’ and that didn’t seem to help. Are there any suggestions?
With 16 users, we have 16+ open connections slowing down the system. I’m new to using Access as a frontend to SQL Server, so any help will be greatly appreciated.
Thanks.
Sofia