We seem to have switched into c# too.
My bad!! C# is my default, and I forgot this was a VB question

You will need an Imports Statement for System.Data.SqlServerCe. As for result, you will need to declare that as an integer. LocationName is your variable, so where does that come from?

Gary