Solved

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

Posted on 2011-09-30
3
360 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

It’s the first day of March, the weather is starting to warm up and the excitement of the upcoming St. Patrick’s Day holiday can be felt throughout the world.
In earlier versions of Windows (XP and before), you could drag a database to the taskbar, where it would appear as a taskbar icon to open that database.  This article shows how to recreate this functionality in Windows 7 through 10.
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…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …

739 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