Ambiguous name detected??

A

awrex

Public Function addtwointegers(intfirst As Integer, intsecond As Integer) As
Integer
Dim intresult As Integer 'Declaration Section
intresult = intfirst + intsecond 'Assignment statement
addtwointegers = intresult 'assignment statement
End Function

I'm wondering if there is a difference between 02/03 Access??
I'm following along in a Access 02 book and I'm getting a "ambiguous name
detected" error when I run this in the immediate window.

Thanks!!!!
 
D

Dirk Goldgar

awrex said:
Public Function addtwointegers(intfirst As Integer, intsecond As
Integer) As Integer
Dim intresult As Integer 'Declaration Section
intresult = intfirst + intsecond 'Assignment statement
addtwointegers = intresult 'assignment statement
End Function

I'm wondering if there is a difference between 02/03 Access??
I'm following along in a Access 02 book and I'm getting a "ambiguous
name detected" error when I run this in the immediate window.

Thanks!!!!

My guess is that you have more than one copy of the addtwointegers
function defined in your database.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top