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.
 
Top