You use "com" before you have created it:
com.Connection = con
com = New SqlCommand("Get_Emp_No", con)
If you wouldn't pass the SqlConnection as an argument to the SqlCommand-Constructor, you would simply have to reverse these two lines. But since you do, you can just remove the first of these two lines.
It should work then - if there are no other bugs ;)
I would suggest to use a different identifier for the SqlCommand:
cmd
- that way it's easier to distinguish from
con
.