473,396 Members | 2,011 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

a really annoying update SQL problem

I have a db with the primary key of Test_Number which is an autonumber.

Every time i run this update query Access tries to set every fail record to true instead of just Test_Number 1. can someone please tell me what is wrong with the where clause?

dim updateFail as String

updateFail = "Update Tests Set fail = true Where Test_Number = '1';"

DoCmd.RunSQL updateFail


Thanks
Feb 3 '08 #1
2 1133
orangeCat
83 64KB
I have a db with the primary key of Test_Number which is an autonumber.

Every time i run this update query Access tries to set every fail record to true instead of just Test_Number 1. can someone please tell me what is wrong with the where clause?

dim updateFail as String

updateFail = "Update Tests Set fail = true Where Test_Number = '1';"

DoCmd.RunSQL updateFail


Thanks

Since Test_number is autonumber (numeric) you do not need quotes.
You did not say the data type of [Fail] , you will need quotes if it is text.
Feb 3 '08 #2
fail is a boolean.
i have tried with and without the quotes. no change
Feb 3 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

66
by: Darren Dale | last post by:
Hello, def test(data): i = ? This is the line I have trouble with if i==1: return data else: return data a,b,c,d = test()
3
by: besbello | last post by:
Hi all, I want to submit a form when the user closes the browser, to keep a count of the number of users accesing my application at each moment. To do this, I use the onbeforeunload() event, that...
8
by: Roy | last post by:
Hey all, You know it, you love it, it's the: "As per the active schema <insert tag here> cannot be nested withing <insert some other tage here>" Error. My question is, does it really matter at...
13
by: Douglas Buchanan | last post by:
I am using the following code instead of a very lengthly select case statement. (I have a lot of lookup tables in a settings form that are selected from a ListBox. The data adapters are given a...
3
by: Maya | last post by:
Hi all, We have a windows forms application with different controls used inside, each control has several input items such as textboxes and some treeviews.. etc. We have been trying to...
6
by: per9000 | last post by:
An interesting/annoying problem. I created a small example to provoke an exception I keep getting. Basically I have a C-struct (Container) with a function-pointer in it. I perform repeated calls...
0
by: P Pulkkinen | last post by:
Dear all, sorry, i know this code is far little too long to debug here, but there is really annoying logical error. If someone debugs this, I really offer warm virtual handshake. What this...
23
by: mike3 | last post by:
Hi. I seem to have made some progress on finding that bug in my program. I deactivated everything in the bignum package that was used except for the returning of BigFloat objects. I even...
1
by: Eamorr | last post by:
Hi guys, You'll see down on the bottom right of this map I have two roll- over images (I haven't got round to doing all the other roll-overs until I get these working!!!) ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.