Solved

Crystal 2008 SQL Command getting error Characters Found Ater End Of SQL Statement

Posted on 2011-09-30
3
357 Views
Last Modified: 2012-05-12
I am working through a tutoriail in my Crystal book on how to update a table to keep track of when a report was last run.

Using Crystal 2008. Trying to insert into an Acesss 2010 table. Below is the statement.

Error Message: Characters found after end of SQL statement.

Anybody know why I am getting this error? Thanks.

INSERT INTO ReportHistory
(ReportName,ReportDate)
VALUES
('Reprot History Subreport', GetDate());
SELECT 1 AS Dummy
0
Comment
Question by:MidWestGirl
  • 2
3 Comments
 
LVL 19

Expert Comment

by:GJParker
ID: 36892761
Access doesn't support running multiple SQL statements in one query, you'll need to use a server databse such as SQL server.
0
 
LVL 19

Accepted Solution

by:
GJParker earned 500 total points
ID: 36892772
Also just noticed the GetDate() function, this is a SQL server function not used in Access so I assume your book example is for SQL Server and not Access
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 36892886
I believe this tool can help solve your problem

http://www.milletsoftware.com/visualcutBenefit.htm

mlmcc
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
Familiarize people with the process of utilizing SQL Server stored procedures from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Micr…
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question