Results 1 to 9 of 9
  1. #1
    Lou_Reed is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2015
    Posts
    1,664

    This code i confusing

    In the attached zipped db is the frmPersonnel. Now what is going on after I select a name say "Dwight Frye" and move into Sub Combo170DblClick.



    I see no variable with that name attached to it.

    If I did I would use it in the next Sub txtRemovePersonnel-Cick(0.

    I selected Dwight Frye and i would like to use that name in the seconf Sub where I would remove that employee.

    Any help appreciate. Thanks in advance.

    R,

    Lou Reed
    Attached Thumbnails Attached Thumbnails Capture.jpg  
    Attached Files Attached Files

  2. #2
    Bulzie is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    Nov 2015
    Posts
    1,474
    Lou I think that code caused the Eclipse today

    Lou search online for docmd.searchforrecord and it will show you what those arguments mean. Basically looks like it is selecting a record based on the PersonnelID of the record you are actively on. Then maybe calls function or module called updatebuttons? Then beeps at you and gives you a message?

  3. #3
    Lou_Reed is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2015
    Posts
    1,664
    You are correct thanks for pointing this out to me. It has been awhile since I worked with records and that is why I did not recognize them straight away.

    Thanks for your help.

    Respectfully,

    Lou Reed

  4. #4
    Lou_Reed is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2015
    Posts
    1,664
    Also a few pointers here. In a reference to a table the first column is 0 or 1?

    It would help to know.

    Respectfully,

    Lou Reed

  5. #5
    Lou_Reed is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2015
    Posts
    1,664
    Quote Originally Posted by Bulzie View Post


    Then beeps at you and gives you a message?
    Yes, what is this message all about? It seems to be seeking a response from the user, but why?

    If you choose the name that should be it.

    I have the macro "code" and can post it if needed.

    Respectfully,

    Lou Reed

  6. #6
    Lou_Reed is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2015
    Posts
    1,664
    I really need an answer to this. I am unsure as to what the purpose of the message that
    comes after the beep.

    I believe that it is not working correctly.

    Any help appreciated. Thanks in advance.

    Respectfully,

    Lou Reed

  7. #7
    Lou_Reed is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2015
    Posts
    1,664
    Quote Originally Posted by Bulzie View Post
    Lou I think that code caused the Eclipse today

    Lou search online for docmd.searchforrecord and it will show you what those arguments mean. Basically looks like it is selecting a record based on the PersonnelID of the record you are actively on. Then maybe calls function or module called updatebuttons? Then beeps at you and gives you a message?
    Yes, but what is the message? I click OK on the dialog window that pops up, but it seems to just rash the program.

    Respectfully,

    Lou Reed

  8. #8
    John_G is offline VIP
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2011
    Location
    Ottawa, ON (area)
    Posts
    2,615
    The message box is actually showing nothing meaningful, as the MsgBox statement is not written correctly. The entire message is inside quotation marks, which means that all Access does is parrot that (not very useful) information back to you. You can delete the MsgBox line with no harm done.

    If there are issues that arise after you clear the message box, the message has nothing to do with it.

  9. #9
    Lou_Reed is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2015
    Posts
    1,664
    I thought so. But it seems to have Sub or something like it, that branches off when it believes an error has occurred.

    So if I delete it will I be in blissful ignorance?

    It does not generate the error for nothing or does it?

    Respectfully,

    Lou Reed

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

Similar Threads

  1. Confusing ODBC Error Message
    By Paul H in forum Forms
    Replies: 5
    Last Post: 02-16-2017, 03:26 PM
  2. Confusing compile error
    By GraeagleBill in forum Programming
    Replies: 5
    Last Post: 07-24-2016, 10:06 PM
  3. Help with a confusing update query
    By bchi99 in forum Queries
    Replies: 10
    Last Post: 11-12-2014, 03:15 PM
  4. This might be confusing
    By djclntn in forum Queries
    Replies: 7
    Last Post: 12-08-2011, 10:56 PM
  5. confusing datatype error issue
    By TheShabz in forum Queries
    Replies: 5
    Last Post: 10-11-2010, 05:14 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