PDA

Click to See Complete Forum and Search --> : Invalid outside procedure


sassh
Sep 2nd, 1999, 02:17 AM
I have a new program which uses ODBC to talk
to MS SQL Server.

The compiler whines with the following error:

Compile error
Invalid outside procedure

The glEnv below is highlighted at the very
beginning of the code:

If SQLAllocEnv(glEnv) <> 0 Then
MsgBox "Unable to init ODBC API drivers!"
End
End If

Q: Can VB6 uses ODBC calls or do I need
an additional package with the VB6 ?

Thanks,
sassh