Hi,
The BETWEEN operator is fine if you want yo use it. The AND is good to
I've noticed you used the single quote this is not needed because it myMin and myMax are numbers
The Between operator
Code:
' The Between operator
mySQL = "SELECT * From tblstaff WHERE BrAge BETWEEN " & myMin & " AND " & myMax
Using AND only
Code:
' The Between operator
mySQL = "SELECT * From tblstaff WHERE BrAge >= " & myMin & "
AND BrAge <=" & myMax
the only thing you can't use is OR
__________________________________________________ ________
This is my junk I'm gona eat it