hi
i am using vb6 as front end and postgres as back end. i am connecting it with ODBC. till now, i don't have problem in connection because i use only one network. but now, i have to connect it with another network.
first i use
xxx.xxx.x.x ip address
now i have to use also
xxx.xxx.xxx.xx ip address
for the database connection
when i use the previous ip address it works well,
but when i use the last one, it gives error message
run time error -3146
odbc-call failed.
i use the connection string as
Public Sub getconnect2()
Set ws = CreateWorkspace ("", "abcd", "", dbUseODBC)
Set dbaccount = ws.OpenDatabase ("", , False, "ODBC;dsn=Postg reSQL10;uid=pos tgres;pwd=''")
End Sub
any help will be appreciated,
TIA
i am using vb6 as front end and postgres as back end. i am connecting it with ODBC. till now, i don't have problem in connection because i use only one network. but now, i have to connect it with another network.
first i use
xxx.xxx.x.x ip address
now i have to use also
xxx.xxx.xxx.xx ip address
for the database connection
when i use the previous ip address it works well,
but when i use the last one, it gives error message
run time error -3146
odbc-call failed.
i use the connection string as
Public Sub getconnect2()
Set ws = CreateWorkspace ("", "abcd", "", dbUseODBC)
Set dbaccount = ws.OpenDatabase ("", , False, "ODBC;dsn=Postg reSQL10;uid=pos tgres;pwd=''")
End Sub
any help will be appreciated,
TIA
Comment