On Mon, 25 Apr 2005 09:01:22 -0500, Web Team @ Borough of Poole
<> wrote:
> Hi All,
>
>
> When I run the below code, I get error 'Specified cast is not valid' on
> line
>
> 163 Dim Address As OldInfra.BS7666.Address =
> BS7666AddressCollection.GetSingleAddress(str_UPRN)
>
> 164 Dim easting As Integer = Address.Easting
> 165 Dim northing As Integer = Address.Northing
>
> Address.Northing is an Integer in my class:
>
> Me.Northing = CType(DR("Northing"), Integer)
>
> Any advice anyone?
>
>
> Thanks,
> Simon.
>
Make sure DR("Nothing") isn't DBNull? Not sure what DR is, though...
http://www.freevbcode.com/ShowCode.asp?ID=5810
--
Craig Deelsnyder
Microsoft MVP - ASP/ASP.NET