ganraj
Dec 7th, 1999, 07:50 PM
Hello!,
I am getting type mismatch error when I call vbsql functions.
Private Sub Command1_Click()
Dim result As Long
'Get a Login record and set login attributes.
Login = SqlLogin()
LoginID = Text2.Text
passwd = Text3.Text
result = SqlSetLUser(Login, LoginID)
result = SqlSetLPwd(Login, passwd)
result = SqlSetLApp(Login, example)
'Get a connection for communicating with SQL Server.
Server = Text1.Text
Sqlconn = SqlOpen(Login, Server)
End Sub
At the SqlSetLUser call the error is returned. The return is 'long' defined in the vbsql.bas
Can anybody help?
------------------
ganraj.
[This message has been edited by ganraj (edited 12-08-1999).]
I am getting type mismatch error when I call vbsql functions.
Private Sub Command1_Click()
Dim result As Long
'Get a Login record and set login attributes.
Login = SqlLogin()
LoginID = Text2.Text
passwd = Text3.Text
result = SqlSetLUser(Login, LoginID)
result = SqlSetLPwd(Login, passwd)
result = SqlSetLApp(Login, example)
'Get a connection for communicating with SQL Server.
Server = Text1.Text
Sqlconn = SqlOpen(Login, Server)
End Sub
At the SqlSetLUser call the error is returned. The return is 'long' defined in the vbsql.bas
Can anybody help?
------------------
ganraj.
[This message has been edited by ganraj (edited 12-08-1999).]