The code I posted was exactly link in the MSDN example (with the exception of a missing "Imports" in front of it)..Originally posted by Mike Hildner
I don't use Oracle these days, but the .NET idea is the same. I'm guessing you need to add the Oracle reference to your project. As in right-click on the References node in the Solution Explorer... Add Reference, blah blah blah. That's what I mean by "did you add the reference".
Of course, the original code you posted isn't valid anyway. Can you post more code, or be specific about the "squiggly line". I know what squiggly lines are, but the specific message is helpful. When you build it, what is the *specific* error message? Details are good.
The error I get is:
C:\Documents and Settings\Me\My Documents\Visual Studio Projects\VS .NET 2003\Visual Basic\WindowsApplication2\Form1.vb(1): Namespace or type 'OracleClient' for the Imports 'System.Data.OracleClient' cannot be found.




Reply With Quote