Open "ODBC Data Sources (32bit)" control panel item
Okay, I'm a bit new to API stuff, but I've read that you can use an API to open the ODBC dialog.
So I've added :
VB Code:
Private Declare Function SQLManageDataSources Lib "ODBC32.DLL" (ByVal hwnd) As Boolean
at the top of my code, and then included
VB Code:
Private Sub Command1_Click()
SQLManageDataSources (hwnd)
End Sub
within the code.
It don't work, and not being much of an API pro, I don't know what to do!
What's wrong? I bet I've done something stupid!
:rolleyes: