Solved

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

Posted on 2003-11-06
1
274 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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

746 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now