To pick up where Darrel Left off: Giving us more of your code will help keep us from playing twenty questions and guessing at the problem.

Also look at the vB Code page to see how you can use the [code]...[/code] to make the code you post look like this:

Code:
X VAR BYTE
Y VAR BYTE

X = Y
It will make it a lot more readable (especially for a lot of code).

Steve B