{"id":1284,"date":"2020-07-23T00:58:02","date_gmt":"2020-07-23T05:58:02","guid":{"rendered":"http:\/\/accessusergroups.org\/sql-server-with-access\/?p=1284"},"modified":"2020-07-23T00:58:02","modified_gmt":"2020-07-23T05:58:02","slug":"alternative-solution-to-dcount-and-dlookup-with-sql-server-backend","status":"publish","type":"post","link":"https:\/\/accessusergroups.org\/sql-server-with-access\/alternative-solution-to-dcount-and-dlookup-with-sql-server-backend\/","title":{"rendered":"Alternative solution to DCount and DLookup with SQL Server Backend"},"content":{"rendered":"

One of the major issues we have encountered with Access is the use of DLookup and DCount when using SQL Server tables.\u00a0 We recently worked on migrating a pure Access solution to SQL server and encountered delays on the loading of several forms.\u00a0 This was due to the use of DLookup and DCount in the VBA code.<\/p>\n

We then came up with a solution to quickly resolve the multiple instances with a couple of functions.\u00a0 We were guided by another solution provide by Allen Browne who designed the Extended DLookup here in this link<\/a>.<\/p>\n

Allen\u2019s solution improves the performance of the DLookup by:<\/p>\n