What exactly? Data collection or even never coded before?
Don answered you first question giving you some pointers, within the very few information you had given... You continued to ask for an example (working solution) WITHOUT even trying to get code done by yourself!
Don redirected you to the forum search, which works very well, and even mentioned Klaus's Booklets, so that you could gather code samples and adapt them to your needs... But instead, you just insisted that you "never done this before"...
and he's a jackass?
Give us your code trials, and we will gladly point you the corrections needed, but we will not do all the work for you.