search within range

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

can someone show me how to create a query to search within a range. e.g. i
want it to ask for a number and then i want it to show numbers in a table
between the weight typed in + 2 and the weight typed in -2

thnx in adv
 
SELECT *
FROM [YourTable]
WHERE [YourTable].[Weight]
BETWEEN ([Enter Weight:] - 2.0) AND ([Enter Weight:] + 2.0)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top