Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access ASP
Access ASP Using ASP with Microsoft Access databases. For Access questions not specific to ASP, please use the Access forum. For more ASP forums, please see the ASP forum category.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access ASP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old August 18th, 2005, 09:16 AM
Registered User
Join Date: Aug 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts

In ACCESS itself this DLookup function in the form works just fine-=DLookUp("RT","CCYPERUSD","[CCY]=[COMBO15]"), however this same function when I am using it in SQL server as a backend database and run it in the same form, it says "#error." This table CCYPERUSD has exact data types. I do not know if there is a specific "twist" I have to do for Dlookup to work in ADP. Please help.

Old October 25th, 2005, 08:36 AM
Friend of Wrox
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts

I don't think you can use DLookup like this with a SQL back end. I don't think you WANT to use anything but views or stored procedures with SQL Server.

The reason is that SQL Server will optimize its views (queries). Ad hoc queries will not be optimized and usually pass too much data, thus also slowing down the network.

Anyway, I remember seeing that DLookup won't work with SQL. I think at Advisor.com.



Similar Threads
Thread Thread Starter Forum Replies Last Post
Access to SQL Server 2000 jgferguson Access 3 December 1st, 2006 12:52 PM
Access 2000: dlookup() errors msleeper Access VBA 3 February 7th, 2006 03:32 PM
Access 2000 "Connect to SQL Server" cjdphlx Access VBA 1 July 17th, 2005 02:09 AM
looking for access 2000 to sql server 2000 sql/que method SQL Server 2000 0 July 7th, 2005 12:46 PM
SQL SERVER 2000 AND ACCESS 2000 ckentebe SQL Server 2000 3 June 17th, 2004 08:50 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.