|
-
Dec 15th, 2005, 09:17 AM
#1
Thread Starter
Hyperactive Member
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 ?
-
Dec 15th, 2005, 09:18 AM
#2
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
-
Dec 15th, 2005, 09:21 AM
#3
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|