I don't have the time to sort your program out right now. Go here:
Sudoku Programmers :: Index

Be sure and specify that you want your program to be a simple brute force solver, and that you are new to programming.

It would be very good if you read up on how to solve Sudoku by hand, first. Lots of websites will have tutorials for that - Google is your friend.