I have this:
Sub backup_checks
DIM oDatabaseContext
DIM oDatasource
DIM oConnection
oDatabaseContext = createUnoService("com.sun.star.sdb.DatabaseContext")
oDatasource = oDatabaseContext.getByName("checksjdbc")
oConnection = oDatasource.GetConnection("","")
oStatement = oConnection.CreateStatement()
DIM oForm as Object
Dim mynum As Integer
stSql = "INSERT INTO `checkbacks` (`checkid`, `transdate`, `transdescribe`, `widthdraw`, `deposit`, `isclr`, `runsum`)
SELECT `checkid`, `transdate`, `transdescribe`, `widthdraw`,
`deposit`, `isclr`, `runsum` FROM `checks`
WHERE `isclr` = 1"
oStatement.executeUpdate(stSql)
oConnection.close
End Sub
Keep getting this error:
BASIC syntax error.
Expected: ".
It’s mysql jdbc connection. Any ideas what’s wrong?