Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2004

    Exclamation Unanswered: Run-Time error '2001' Help!

    When I try to execute this code:

    txtPEmp = DLookup("[Company Name]", "Company", "[Company Number] = company")

    I get the infamous run-time error '2001' you canceled the previous operation. I have no idea why it breaks on this line of code. Any suggestions?

  2. #2
    Join Date
    Mar 2003
    The Bottom of The Barrel
    Provided Answers: 1
    txtPEmp = DLookup("[Company Name]", "Company", "[Company Number] = " & company)
    oh yeah... documentation... I have heard of that.

    *** What Do You Want In The MS Access Forum? ***

Posting Permissions

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