Hi

Wondering if anyone can help me with a very strange problem I'm experiencing. The following line of code is stopping my application from compiling with the error "Type Expected"

The offending line of code is

Dim rData As New Data

I have included the correct Import statements i.e

Imports System.Data

Imports System.Data.SqlClient

and have even tried re-adding System.Data as a reference and putting the dll directly into me bin directory but my project simply refuses to recognise it as a valid type. Needless to say I'm pulling my hair out trying to figure out what's going on here. Am I missing something obvious or is this some thing anyone has experienced before.

Any help would be greatly appreciated.

Thanks in advance.