Can we see you code so we can tell you where the problem is?
Did you code for the data slicer?

http://www.picbasic.co.uk/forum/showthread.php?t=11589

In the meantime look at the tips and tricks section here.
http://davehouston.net/