Record.SETRANGE(Field [,FromValue] [,ToValue])// this is the setrange functon syntax
ZIPCGRec.SETRANGE("Post Code",ZIPCGRec."From Zip",ZIPCGRec."To Zip");//this is my form syntax
here post code is a field not in ZIPCGRec table....is my code is correct or wrong
0
Answers
It will take just two filters.
Blog - rockwithnav.wordpress.com/
Twitter - https://twitter.com/RockwithNav
Facebook - https://facebook.com/rockwithnav/
but it print only table first value.this code is didn't filter
It is somewhat suspicious that you use values from the same table/record as filter parameters on which you set the filter.
How did you retrieve the records?
in your code you're setting a filter on one filed using two filter parameters. Is that what you need or do you need the opposite: finding the record with "From Zip" <= "Post Code" <= "To Zip"?
Franz Kalchmair, MVP
Alias: Jonathan Archer
please like / agree / verify my answer, if it was helpful for you. thx.
Blog: http://moxie4nav.wordpress.com/