Results 1 to 1 of 1

Thread: [RESOLVED]New problem - error 2001

  1. #1

    Thread Starter
    PowerPoster kfcSmitty's Avatar
    Join Date
    May 2005
    Posts
    2,248

    [RESOLVED]New problem - error 2001

    Okay, i have this code

    VB Code:
    1. Dim intPayband As Integer
    2. Me![current payband].SetFocus
    3. intPayband = Val(Me![current payband].Text)
    4. Me![Label14].Caption = DLookup("[Salary]", "AcademicPayband", "[Payband] = intPayband")

    And its giving me an error 2001 - This action canceled the previous

    Or something along those lines.

    if i replace "intPayband" with a value IE) 8
    then it works fine, but if I try to pull data from anything it cancels it..

    So i tried putting the value into a variable, but still no luck..



    *edit*

    nevermind, solved it
    Last edited by kfcSmitty; May 19th, 2005 at 10:46 AM.

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