RE: DataAdapter returns 0 results, what am I doing wrong?
From: Kerry Moorman (KerryMoorman_at_discussions.microsoft.com)
Date: 02/02/05
- Next message: james: "Re: Date from Number of Days"
- Previous message: james: "Re: Date from Number of Days"
- In reply to: Matt Michael: "DataAdapter returns 0 results, what am I doing wrong?"
- Next in thread: Matt Michael: "Re: DataAdapter returns 0 results, what am I doing wrong?"
- Reply: Matt Michael: "Re: DataAdapter returns 0 results, what am I doing wrong?"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 1 Feb 2005 18:23:03 -0800
Matt,
You might need to use the % character instead of the * character with Like:
AND Appointments.Details LIKE "%test%";
Also, double-quote delimiters might work, but you might need single-quotes:
AND Appointments.Details LIKE '%test%';
Kerry Moorman
"Matt Michael" wrote:
> where queryString is the string I have constructed. It looks like this:
>
> SELECT Appointments.AppointmentID, Appointments.AppointmentTime,
> Buildings.Building, Appointments.RoomNumber, Appointments.Details FROM
> (Appointments INNER JOIN Buildings ON
> Appointments.BuildingID=Buildings.BuildingID) INNER JOIN Technicians ON
> Appointments.TechnicianID=Technicians.TechnicianID WHERE 1 = 1 AND
> Technicians.TechnicianName = "Matt" AND Appointments.Details LIKE "*test*";
>
- Next message: james: "Re: Date from Number of Days"
- Previous message: james: "Re: Date from Number of Days"
- In reply to: Matt Michael: "DataAdapter returns 0 results, what am I doing wrong?"
- Next in thread: Matt Michael: "Re: DataAdapter returns 0 results, what am I doing wrong?"
- Reply: Matt Michael: "Re: DataAdapter returns 0 results, what am I doing wrong?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|