Query limit field

Hi Tim,

I have changed code to query limit field form/table as you suggested. It respects the MAX_LIMIT constant.

Regards,

Troy