|
-
Jul 8th, 2005, 06:48 PM
#1
Thread Starter
Hyperactive Member
[RESOLVED] Compile Error
I am using the following piece of code.
Private Sub AddNew_Record()
datNCR.Recordset.AddNew
End Sub
It works in program one program I have written and now I have added to a new program I get the following error message:-
Compile Error:
Ambiguous name detected: AddNew_Record
Can anyone help me on this please?
Thanks in advance
-
Jul 8th, 2005, 06:58 PM
#2
Re: Compile Error
It means that you probably already have an AddNew_Record sub or function in the new program.
-
Jul 8th, 2005, 07:03 PM
#3
Re: Compile Error
Press CTRL+F and do a search for "AddNew_Record" Like martin said, you will find two subs/functions with that name. Combine the code from the seperates ones into a single sub and you should be good to go. Please mark thread as resolved if you get it working. Thanks. Good luck.
-
Jul 8th, 2005, 07:03 PM
#4
Thread Starter
Hyperactive Member
Re: Compile Error
You were correct it was there twice
-
Jul 8th, 2005, 07:04 PM
#5
Thread Starter
Hyperactive Member
Re: Compile Error
How do I mark it resolved??
-
Jul 8th, 2005, 07:06 PM
#6
Re: Compile Error
 Originally Posted by tomjess
How do I mark it resolved??
The instructions are at the bottom of my signature.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|