?
Solved

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

Posted on 2003-11-06
1
Medium Priority
?
284 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 76

Accepted Solution

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

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…
Suggested Courses
Course of the Month8 days, 19 hours left to enroll

765 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