473,467 Members | 1,351 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

MS Access query returns many rows in preview but 0 on run (execute)

When i run the following query on my table it returns 0 rows but when i
run it in the preview mode (where the update is applied) more then 2000
records are returned.

UPDATE dbo_ISRTEST SET dbo_ISRTEST.Product = "Gure"
WHERE (((dbo_ISRTEST.Product) Like '%station%'));

If I change the Like to be just = as below then everything works so it
seems to be something about the Like statement.

UPDATE dbo_ISRTEST SET dbo_ISRTEST.Product = "Gure"
WHERE (((dbo_ISRTEST.Product)="station"));

Unfortunately i need to use like as Product field is a text field and
station is just a tag which may appear in it.

Any help would be greately appreciated.

Funny thing is that stuff used to work but for some reason doesn't
anymore.

I am connecting to a SQL database through ODBC & a linked table.

Jul 13 '06 #1
1 2023
Replace % with *


--

Terry Kreft
<ma***********@honeywell.comwrote in message
news:11**********************@75g2000cwc.googlegro ups.com...
When i run the following query on my table it returns 0 rows but when i
run it in the preview mode (where the update is applied) more then 2000
records are returned.

UPDATE dbo_ISRTEST SET dbo_ISRTEST.Product = "Gure"
WHERE (((dbo_ISRTEST.Product) Like '%station%'));

If I change the Like to be just = as below then everything works so it
seems to be something about the Like statement.

UPDATE dbo_ISRTEST SET dbo_ISRTEST.Product = "Gure"
WHERE (((dbo_ISRTEST.Product)="station"));

Unfortunately i need to use like as Product field is a text field and
station is just a tag which may appear in it.

Any help would be greately appreciated.

Funny thing is that stuff used to work but for some reason doesn't
anymore.

I am connecting to a SQL database through ODBC & a linked table.

Jul 13 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Sheila King | last post by:
I have searched for an answer to this question on the comp.lang.python archives at Google Groups, and also looked through the (sparse) MySQLdb documentation, and cannot confirm for a FACT what I...
1
by: Joris Kempen | last post by:
Hi people, I know that the question has come around sometimes: How to open an Access Report using ASP and export it to for example RTF. I'm trying to implement the first method of David...
1
by: annie | last post by:
Hi all, I have recently ported my Access 2000 app to SQL Server, keeping the Access client as the front end using linked tables. I am also using triggers on my SQL tables to trap orphan...
2
by: Dean Slindee | last post by:
Anybody written code in VB.NET to: 1) show a print preview window of reports already written and stored in an Access 2002 database; or 2) execute the print of a report stored in an Access 2002...
0
by: Jeff Boes | last post by:
I hope this helps someone else ... I had struggled some time ago with attempts to get a rank of values query to work, but then I gave up and set it aside. I had another reason to attack it, and in...
13
by: royaltiger | last post by:
I am trying to copy the inventory database in Building Access Applications by John L Viescas but when i try to run the database i get an error in the orders form when i click on the allocate...
4
by: spamsickle | last post by:
I've created a query using the Query Designer under VB Express, and I can execute it in the Query Designer to verify that it returns the data I want. My database is called Area. It contains one...
4
by: etuncer | last post by:
Hello All, I have Access 2003, and am trying to build a database for my small company. I want to be able to create a word document based on the data entered through a form. the real question is...
2
by: Patrick Pirtle | last post by:
Having programmed for a number of years with VB6 (but very little database stuff), I'm trying to learn Visual Studio, but am just about at the end of my rope as far as wrapping my mind around...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
Oralloy
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,...
1
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
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.