Hi,
I have this code. At Rs.open stmt i get the error saying
"Runtime - error
Invalid SQL statement; expected 'Insert', 'delete', 'pprocedure', 'select' or 'update' "
What does the error mean, and what do i need to do?
I appreciate time taken to help me.
I have this code. At Rs.open stmt i get the error saying
"Runtime - error
Invalid SQL statement; expected 'Insert', 'delete', 'pprocedure', 'select' or 'update' "
Code:
Dim RS As New ADODB.Recordset
Dim sql As String
RS.CursorLocation = adUseClient
sql = "SHAPE {SELECT * FROM RSStrnoCnt} AS
sql = sql & " DailySales APPEND "
sql = sql & " (( SHAPE {SELECT * FROM ReportSales}
sql = sql & " AS DSReport APPEND
sql = sql & " ({SELECT * FROM ReportSubTotals} "
sql = sql & " AS RSSubTotals RELATE Date TO Date)
sql = sql & " AS RSSubTotals) AS DSReport "
sql = sql & " RELATE Date TO Date) AS DSReport "
RS.Open sql, DSN, adOpenDynamic, adLockOptimistic
Set DrDailyStoreSales.DataSource = RS
What does the error mean, and what do i need to do?
I appreciate time taken to help me.