This is the code that i put into the SQL screen.
the data is as follows
BS 1 = 80
BS 2 = 101
BS 3 = 20
BS 4 = 100
and the query asks me for the Blood Sugar Level.
If i use numbers below 80, or 100 and up it works correctly. but if i put in 83,87,95,99, etc between 80 and 100 it shows 0 results even though it should still show the results from above.
what am i missing?
the data is as follows
BS 1 = 80
BS 2 = 101
BS 3 = 20
BS 4 = 100
and the query asks me for the Blood Sugar Level.
If i use numbers below 80, or 100 and up it works correctly. but if i put in 83,87,95,99, etc between 80 and 100 it shows 0 results even though it should still show the results from above.
what am i missing?
Code:
SELECT [Contact Info].ID, [Contact Info].[First Name], [Contact Info].[Paternal Last Name], [Contact Info].[Maternal Last Name], [Contact Info].DOB, BS.[BS 1], BS.[BS 2], BS.[BS 3], BS.[BS 4] FROM BS INNER JOIN [Contact Info] ON ([Contact Info].ID = BS.ID) AND (BS.ID = [Contact Info].ID) AND (BS.ID = [Contact Info].ID) WHERE (((BS.[BS 1])>=[Blood Sugar Level])) OR (((BS.[BS 2])>=[Blood Sugar Level])) OR (((BS.[BS 3])>=[Blood Sugar Level])) OR (((BS.[BS 4])>=[Blood Sugar Level]))
Comment