|
-
Jan 4th, 2008, 04:43 PM
#1
Thread Starter
Hyperactive Member
[2005] Access YES/NO problem or Data Adapter problem?
I'm using an SQL statement to try and run an Update statement to an Access database. Unfortunately I have to mess with a YES/NO field aka boolean. Here's my current statement:
UPDATE [table1] SET field1 = 'blah',field2 = 'blahblah',TorF = no WHERE num = 289
now I've tried yes, no, 0, 1, True, and False and every one of them result in a "data mismatch type." Now I looked this up extensively online and some sources say 0 and 1 should work and others say True and False out of single quotes should work. So is there some sort of VB data adapter or other ADO problem going on here that's interfering with it? I thought the data adapter will send anything even if I sent it an SQL string of "hey go do some databasey stuff, alright?" and let the DB handle it but then again it it specifically an OLEDB adapter. So yeah I'm sure someone here has at some point had to deal with the yes/no field so what worked for you?
I tried to end process on Visual Studio 2005
but PETA stopped me saying it's smart enough
to be a living creature 
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
|