Results 1 to 6 of 6

Thread: [RESOLVED] Compile Error

  1. #1

    Thread Starter
    Hyperactive Member tomjess's Avatar
    Join Date
    Mar 2001
    Location
    Hamilton, New Zealand
    Posts
    348

    Resolved [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

  2. #2

  3. #3
    No place like 127.0.0.1 eyeRmonkey's Avatar
    Join Date
    Jul 2005
    Location
    Blissful Oblivion
    Posts
    2,306

    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.
    Visual Studio 2005 Professional Edition (.NET Framework 2.0)
    ~ VB .NET Links: Visual Basic 6 to .NET Function Equivalents (Thread) | Refactor! (White Paper) | Easy Control for Wizard Forms | Making A Proper UI For WinForms | Graphics & GDI+ Tutorial | Websites For Free Icons
    ~ QUOTE: Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. -Rich Cook

    ~ eyeRmonkey.com

  4. #4

    Thread Starter
    Hyperactive Member tomjess's Avatar
    Join Date
    Mar 2001
    Location
    Hamilton, New Zealand
    Posts
    348

    Re: Compile Error

    You were correct it was there twice

  5. #5

    Thread Starter
    Hyperactive Member tomjess's Avatar
    Join Date
    Mar 2001
    Location
    Hamilton, New Zealand
    Posts
    348

    Re: Compile Error

    How do I mark it resolved??

  6. #6

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width