Results 1 to 3 of 3

Thread: Invalid use of null (Self resolved)

  1. #1

    Thread Starter
    Addicted Member Bazzlad's Avatar
    Join Date
    Jun 2003
    Posts
    227

    Invalid use of null (Self resolved)

    When I use this code and delete all my records I get an invalid use of null error message any ideas what's wrong?

    (Nb Text19 is how many records to delete)


    VB Code:
    1. Do While Text19.Value >= 1
    2.         DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70
    3.         DoCmd.DoMenuItem acFormBar, acEditMenu, 6, , acMenuVer70
    4.         Text19.Value = Text19.Value - 1
    5.     Loop
    6.     End If
    7.     End If
    Last edited by Bazzlad; Jul 24th, 2003 at 09:06 AM.
    *And you'll see, Everything you stand for is fake*
    http://www.rhesusrock.com

  2. #2
    Addicted Member
    Join Date
    Aug 2002
    Location
    Luton, UK
    Posts
    178
    In the absence of another reply, my suggestion is that the problem is due to the fact that a text box contains text and you are trying to use it like a number.
    Regards
    BrianB
    -------------------------------

  3. #3

    Thread Starter
    Addicted Member Bazzlad's Avatar
    Join Date
    Jun 2003
    Posts
    227
    It's ok I solved it, and no what you said is wrong for the reason that VBA in access will not allow you to use .text (due to a glitch) and instead you have to use .value

    The problem with the code was actually, in the bit I didn't put on the site

    lol
    Thanx anyway, Bazz
    *And you'll see, Everything you stand for is fake*
    http://www.rhesusrock.com

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