?
Solved

SQL Updates

Posted on 2000-04-24
3
Medium Priority
?
135 Views
Last Modified: 2010-05-02
Can anyone tell me what is wrong with the VERY simple SQL UPDATE statement:

BooksConnection.Execute "UPDATE ImportCheck SET CheckStatus = -1;"

I have tried a number of methods but all I can get is "No value given for a required paramter" I want to update all records and I have tried adding a where clause just for theheck of it. ame results. I am using the same connection in many other places in my code for inserts and deletes wth no errors. Checkstatus is a yes/no field in access.

Thanks.
0
Comment
Question by:scotts27
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 54

Expert Comment

by:nico5038
ID: 2743984
Try:
UPDATE ImportCheck SET ImportCheck.[CheckStatus] = true;

Nico
0
 
LVL 54

Accepted Solution

by:
nico5038 earned 150 total points
ID: 2743993

Strange, your query does work under Access (-1 is equal to TRUE)
So I would advise to check the names used. (ImportCheck and CheckStatus)

Access is always asking for a parameter if there is a name it can't find in the mentioned table !

0
 

Expert Comment

by:jsimonh33
ID: 2744386
Try dropping off the semicolon at the end. That is only required for MS Access.

I was just guessing you are Using ODBC connecting to SQL server. Are you and: What is the DataType for CheckStatus, Binary right?


Good luck.

Simon
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses
Course of the Month14 days, 17 hours left to enroll

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question