Results 1 to 3 of 3

Thread: what's wrone in there delete statment ???

  1. #1

    Thread Starter
    Hyperactive Member xray's Avatar
    Join Date
    Jun 2003
    Location
    EgYpT
    Posts
    312

    what's wrone in there delete statment ???

    peace be with you

    dear friend's :
    i write this code to delete in database :

    Code:
    dim del_str,del_w_id
    
    del_str = "delete * from won_tab where w_id = '4'"
    
    db.execute(del_str)
    where the :
    w_id = is a autonumber
    won_tab = the name of table

    Code:
    Error Type:
    Microsoft JET Database Engine (0x80040E07)
    Data type mismatch in criteria expression.
    /islam/admin_w_ok.asp, line 52
    thanks
    In the name of allah , the beneficent , the merciful

    Say (O Muhammad ): We believe in allah and that which is revealed unto us and that which was revealed unto abraham and ishmael and isaac and jacob and the tribes , and that which was vouchsafed unto moses and jesus and the prophets from their lord . we make no distinction between any of them , and unto him we have surrendered


    ---- Great Sites For You -------------------

    If you want to know some small things about islam ?

  2. #2
    A SQL Server fool GaryMazzone's Avatar
    Join Date
    Aug 2005
    Location
    Dover,NH
    Posts
    7,493

    Re: what's wrone in there delete statment ???

    Don't place qoutes around the number 4. It is a number not a string.
    Sometimes the Programmer
    Sometimes the DBA

    Mazz1

  3. #3
    Banned
    Join Date
    Nov 2005
    Posts
    2,367

    Re: what's wrone in there delete statment ???

    Also, you don't need an asterisk, all columns are assumed.

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