ADOX VS2005 DN 2.0

G

GW

Used the function below as part of creating access mdb in DN 1.1 (VS2003)

In VS2005 it provides a "Warning: Return type of function 'GFO_CatSet' is
not CLS-compliant."

Suggestions? (This project has to stick with Access mdb)


Public Function GFO_CatSet( ByVal sPathDbName As String) As ADOX.Catalog

Dim catX As ADOX.Catalog

Dim sXW As String

sXW = GFS_GetXW()

catX = New ADOX.Catalog

catX.ActiveConnection = "Provider=Microsoft.Jet.OLEDB.4.0;" _
& "Data Source= " & sPathDbName & ";" _
& "User ID=;Password=;" _
& "Jet OLEDB:Engine Type=5;" _
& "Jet OLEDB:Database Password=" & sXW & ";"

Return catX

End Function '(GFO_CatSet)
 
G

GW

Yes the code still works.

Just would like to get rid of the warning as obviously it does not like what
it sees.

Haven't checked to see if there is another option to create an Access mdb
thru VS2005. Probably not as the push is for SQl / SQLexpress.

GW
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top