|
-
Jun 1st, 2000, 08:53 AM
#1
Thread Starter
PowerPoster
Why is it that the Execute method does not produce a type-mismatch error as it should?
My problem was that I had a statement like this:
MyDB.Execute "UPDATE ... WHERE TextField = " & MyValue & " .."
VB/DAO/Jet did not give me an error, but also did not update my record.
Upon debugging, I fixed the statement as follows:
MyDB.Execute "UPDATE ... WHERE TextField = '" & MyValue & "' .."
And it worked fine.
But it would have been nice to have gotten a type-mismatch error initially, which would have saved me some debug time.
"It's cold gin time again ..."
Check out my website here.
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
|