Hi,
I have a major problem. I use Windows 2000 highest SP and ACCESS 2000 inside
Office 2000 SP-3.
I want to use the following simple command inside ACCESS in VBA
UPDATE tbl_SATURN_Benu tzer SET bool_IstDatensa tzAktuell = False,
bool_ImportChec kFlag = True, dat_Löschdatum = #01/25/2005 18:38:17# WHERE
((bool_ImportCh eckFlag = False) AND (dat_Löschdatum = Null) AND
(byte_Anwendung = 2));
This means: With the above command I want to update three columns in a table
with UPDATE and SET using a WHERE clause.
Theoreticall y one row should be found and updated. But inside VBA no single
row was found and so no update, absolutely wrong!!
If I take this command and put it completely in ACCESS into a query in
SQL-View it and I execute it, it also finds no row !! This is wrong again.
When I directly switch into the design-view mode and I save it as a new
query before (this is important!!), I get the one desired row updated. If I
go back to SQL-view copy & pase this "working" string into VBA and I execute
it again, I unfortunately get no row as result again.
Can anyone help me? I assume there is a bug. Is there any walk around?
Any help is very appreciated.
Regards,
Winfried
(br*******@hotm ail.com) 3 4124
<br*******@hotm ail.com> wrote I want to use the following simple command inside ACCESS in VBA
UPDATE tbl_SATURN_Benu tzer SET bool_IstDatensa tzAktuell = False, bool_ImportChec kFlag = True, dat_Löschdatum = #01/25/2005 18:38:17# WHERE ((bool_ImportCh eckFlag = False) AND (dat_Löschdatum = Null) AND (byte_Anwendung = 2));
This means: With the above command I want to update three columns in a
table with UPDATE and SET using a WHERE clause.
Theoreticall y one row should be found and updated. But inside VBA no
single row was found and so no update, absolutely wrong!!
If I take this command and put it completely in ACCESS into a query in SQL-View it and I execute it, it also finds no row !! This is wrong again. When I directly switch into the design-view mode and I save it as a new query before (this is important!!), I get the one desired row updated. If
I go back to SQL-view copy & pase this "working" string into VBA and I
execute it again, I unfortunately get no row as result again.
dat_Löschdatum = Null
and
dat_Löschdatum Is Null
will return different results.
Access will not convert "= Null" in SQL View, but it will in QBD View.
Darryl Kerkeslager
On Jan 25 2005, 03:12 pm, <br*******@hotm ail.com> wrote in
news:ct******** *****@news.t-online.com: I want to use the following simple command inside ACCESS in VBA
UPDATE tbl_SATURN_Benu tzer SET bool_IstDatensa tzAktuell = False, bool_ImportChec kFlag = True, dat_Löschdatum = #01/25/2005 18:38:17# WHERE ((bool_ImportCh eckFlag = False) AND (dat_Löschdatum = Null) AND (byte_Anwendung = 2));
This means: With the above command I want to update three columns in a table with UPDATE and SET using a WHERE clause.
Theoreticall y one row should be found and updated. But inside VBA no single row was found and so no update
Change (dat_Löschdatum = Null) to (dat_Löschdatum Is Null). Null is not a
value, it cannot be compared using the equals sign - in SQL you have to use
the Is operator.
--
remove a 9 to reply by email
Thx for your solution. I guess I worked too much yesterday that I didn't
recognized the error.
Winfried
<br*******@hotm ail.com> schrieb im Newsbeitrag
news:ct******** *****@news.t-online.com... Hi,
I have a major problem. I use Windows 2000 highest SP and ACCESS 2000 inside Office 2000 SP-3.
I want to use the following simple command inside ACCESS in VBA
UPDATE tbl_SATURN_Benu tzer SET bool_IstDatensa tzAktuell = False, bool_ImportChec kFlag = True, dat_Löschdatum = #01/25/2005 18:38:17# WHERE ((bool_ImportCh eckFlag = False) AND (dat_Löschdatum = Null) AND (byte_Anwendung = 2));
This means: With the above command I want to update three columns in a table with UPDATE and SET using a WHERE clause.
Theoreticall y one row should be found and updated. But inside VBA no single row was found and so no update, absolutely wrong!!
If I take this command and put it completely in ACCESS into a query in SQL-View it and I execute it, it also finds no row !! This is wrong again. When I directly switch into the design-view mode and I save it as a new query before (this is important!!), I get the one desired row updated. If I go back to SQL-view copy & pase this "working" string into VBA and I execute it again, I unfortunately get no row as result again.
Can anyone help me? I assume there is a bug. Is there any walk around?
Any help is very appreciated.
Regards, Winfried (br*******@hotm ail.com) This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Mark B |
last post by:
We have an Access app (quite big) at www.orbisoft.com/download.
We have had requests by potential users to have it converted to an SQL
version for them since there corporate policy excludes them from buying mdb
backends.
Here's the (million dollar?) questions :)
How long and how difficult a process would it be?
Which SQL platform would we be best to develop it on?
|
by: Randy Harris |
last post by:
Several years ago I became involved in a major Access development project.
At the time, A2K was very new and the books were rather strongly suggesting
that ADO was the future and DAO would be retired. Further evidence was the
default reference to ADO in A2K projects. I chose that route, but to this
day, am not certain it was a good choice.
I now know that the predictions of the demise of DAO were entirely
premature. I'm still working...
|
by: John |
last post by:
Hi
What future does access have after the release of vs 2005/sql 2005? MS
doesn't seem to have done anything major with access lately and presumably
hoping that everyone migrates to vs/sql.
Any comments?
Thanks
|
by: carl.manaster |
last post by:
I'm new to this game. I can find my way around C# without any trouble,
and I've used Access, a little bit, in the past. Now a friend wants an
application of mine to read from his Access database. He's sent me the
..mdb file and a username and password, also an .mdw security file, and
I've tried to connect to it, using a couple of sample programs I found
on the web. Here's the critical code (<path>, <user>, and <password>
of course...
|
by: ASP.Confused |
last post by:
I have an ASP.NET page writtein in VB that uses ADODB. I just had to
force-install MDAC 2.8 after I tried to rollback to 2.6 (my web host uses
this, and I wanted to be compatible with them.) I had to manually install
all of the ODBC drivers and the rest of the DLL's, and now I am getting
"Access is Denied" errors on any page that uses ADODB.
How do I fix it? I already gave the ODBC drivers in the folders in
"c:\program files\common...
| |
by: Lyle Fairfield |
last post by:
http://samples.gotdotnet.com/QuickStart/howto/default.aspx?url=/quickstart/howto/doc/adoplus/ADOPlusOverview.aspx
**** begin quote ****
ADO.NET Overview
ADO.NET is an evolution of the ADO data access model that directly
addresses user requirements for developing scalable applications. It
was designed specifically for the web with scalability, statelessness,
and XML in mind.
ADO.NET uses some ADO objects, such as the Connection and...
|
by: vbDavidC |
last post by:
I am wondering if I should use MS Access or SQL server as my database.
I have a little experience programming an Access DB with VB6 (DAO/ADO).
I am now starting over with VB2005 and will be doing some DB
development. I assumed that I would stay with Access but noticed that
there is some type of SQL server that comes with Visual Studio 2005 and
also in the Express editions as well.
I am using this in a single user environment on a PC...
|
by: WannaKatana |
last post by:
I am just wondering why, with nothing else running and executing an
update query against a very large table, does Access seem to be
causing less than 10% processor usage. Then it says "There is not
enough disk space or memory to undo the changes". I have 2 gb RAM,
Core 2 duo e6300 processor and plenty of disk space. Why doesn't
Access peg the CPU?
Joel
|
by: MS |
last post by:
OK, now, I've climbed far enough up the learning curve to be about where I
was with Access in building data-driven Windows forms but I've seen no
advantage over the old way. Maybe finer-grained security but DLL-hell was
not a real problem before - just give 'em a new MDE and a macro to link the
tables up again. Distribution wasn't a real problem if you used Access
runtime. Getting at the nuts and bolts could always be done with VBA. ...
|
by: Mark |
last post by:
Currently using MS Access 2000 and SQL Server Express. Using the
current DAO OpenRecordset code listed below, however I keep getting
the error message....
3254: ODBC --Cannot lock all records
The code below runs in a MS Access frontend while the table is linked
using an ODBC connected to an SQL Server (backend). The table
(located in SQL) only has one row and one column within it . I want
to try and stop any other request (other...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |