Results 1 to 2 of 2
  1. #1
    Dreamweaver is offline Novice
    Windows 10 Access 2016
    Join Date
    Apr 2020
    Posts
    1

    Unhappy Characters Found After SQL Statement Error!

    For the first query, query1 I created an empty table
    Code:
     
    
    
    CREATE TABLE Passenger(
    PassID int NOT NULL PRIMARY KEY,
    PassLName VARCHAR(25), 
    PassFName VARCHAR(25), 
    PassAge int,
    Maint_DS DATETIME
    );
    
    
    For query2 I was trying to insert data into rows



    Code:
    INSERT INTO Passenger
    VALUES(1, 'Morris', 'Lucy', 50, Date());
    SELECT * FROM Passenger;
    Click image for larger version. 

Name:	TableFOrm.PNG 
Views:	8 
Size:	15.2 KB 
ID:	41577
    Attached Thumbnails Attached Thumbnails Create Database.PNG  

  2. #2
    Micron is offline Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,776
    The semi colon denotes the end of a sq statement. Anything that comes after it will raise that error.
    Date());
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. if statement if no files found
    By tagteam in forum Access
    Replies: 1
    Last Post: 07-16-2019, 10:59 AM
  2. Caractors found after sql statement?? Error?
    By d9pierce1 in forum Programming
    Replies: 12
    Last Post: 04-27-2019, 05:25 PM
  3. Replies: 7
    Last Post: 05-01-2017, 02:18 PM
  4. Replies: 3
    Last Post: 05-09-2015, 06:40 PM
  5. Replies: 7
    Last Post: 06-08-2012, 09:55 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums