Results 1 to 8 of 8
  1. #1
    Andrias14 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Nov 2011
    Posts
    25

    Exclamation Help Error Problems

    I am getting this message

    The expression On Click you entered as teh event property setting produced the following error:Ambiguos name detected: All_Patients_Click

    *The expression may not result in the name of the macro, the name of a user defiened function or [Event Procedure]


    *There may be an error evaluating the function,event or macro

    And when i press show help this is what i get :
    This error occurs when an event has failed to run because the location of the logic for the event cannot be evaluated. For example, if the OnOpen property of a form is set to =[Field], this error occurs because a macro or event name is expected to run when the event occurs.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,626
    I usually see that message when I accidently give two procedures in the same module the same name. Did you run Debug>Compile before trying to execute code?
    Last edited by June7; 02-07-2012 at 05:04 PM.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    Andrias14 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Nov 2011
    Posts
    25
    Nope and and i think i deleted the module aswell

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,626
    Still getting error message?

    The project compiles?

    Deleted module? The button Click event has [Event procedure] in the property?

    Do you want to provide project for analysis?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  5. #5
    Andrias14 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Nov 2011
    Posts
    25
    well i still get the message and i dont have a module anymore, you mean attach it sure

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,626
    You have duplicate procedures for Add_Patient_Click and All_patients_Click in Frm_Switchboard.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  7. #7
    Andrias14 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Nov 2011
    Posts
    25
    so do i just delete one of them and if yes whch one

  8. #8
    Andrias14 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Nov 2011
    Posts
    25
    sorted
    Thanks
    Andrias

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 6
    Last Post: 09-28-2011, 09:20 PM
  2. Error Coding Problems
    By desk4tbc in forum Programming
    Replies: 7
    Last Post: 07-11-2011, 04:10 PM
  3. Replies: 8
    Last Post: 05-16-2011, 06:01 PM
  4. OLE problems how to fix
    By miziri in forum Access
    Replies: 7
    Last Post: 04-29-2010, 06:18 AM
  5. Replies: 1
    Last Post: 10-15-2008, 01:25 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums