Where... IN statement not returning records

mardi 10 mars 2015

I have a query that I set up to return multiple records. The number of the records is in that text box. I have tried to set the where clause to the text box but for some reason I don't get any of the records I want returned. I am using a Where... IN statement. I have tried to put the numbers in single quotes and no quotes and I have had no luck at all. If I do individual records they will return, just not when I try and do more then one at a time. This query is a part of something more, but since it doesn't return anything, there isn't any sense worrying about the bigger picture. Here is my sql statement




Code:



SELECT CalibratedEquipmentListTable.ID, CalibratedEquipmentListTable.Manufacturer, CalibratedEquipmentListTable.ModelNo, CalibratedEquipmentListTable.Description, CalibratedEquipmentListTable.SerNo, CalibratedEquipmentListTable.LastCal, CalibratedEquipmentListTable.CalDue

FROM CalibratedEquipmentListTable

WHERE CalibratedEquipmentListTable.ID In ([Forms]![ReportForm]![Text41]);




Where... IN statement not returning records

0 commentaires:

Enregistrer un commentaire

Labels