Solved

Function or interface marked as restricted, or the function uses an Automation...

Posted on 2003-11-06
1
277 Views
Last Modified: 2008-02-01
Hi,

I have inherited a program developed in VB5 to which i need to make some changes. However, even before making any changes i attempt to compile the project file in VB5 and get the following error

Function or interface marked as restricted,
or the function uses an Automation type not supported in VB

The error occurs at the following line of code

tablename.Recordset.FindFirst

Does anyone have any idea why this might be happening and what i might do to resolve it?

Thanks in advance,
Nev.
0
Comment
Question by:dobermannnn
1 Comment
 
LVL 76

Accepted Solution

by:
GrahamSkan earned 20 total points
ID: 9693373
FindFirst is DAO. Have you set references to DAO in your project?
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

786 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question