win 10, lo 7,3,7,3 (64) hSQL 2.51
Hi,
Trying to open my webmail from a button on several forms, as such getting the url from a settings table.
The queries msgbox returns the correct string, the browser however fails to start with a file not found error…
Sub wmail
Dim myVar As String
oConn = ThisDatabaseDocument.DataSource.getConnection("","")
SQL=oConn.createStatement()
result=SQL.executeQuery(“select ““webmailurl”” from ““tblSettings”””)
result.next
myVar = result.getstring(1)
msgbox " " & myVar
FullPath = myVar
TheURL = ConvertToURL(FullPath)
If FileExists(TheURL) Then
SHELL TheURL,2
Else
msgbox “The Url seems to be a problem, please check the settings form”
End if
End Sub
If a remove the IF block and just leave SHELL TheUrl,2 or use Start TheURL, same error occurs.
Appreciate any help, thank you.