Results 1 to 2 of 2
  1. #1
    eignhpants is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Dec 2012
    Posts
    1

    Absolute beginner, trouble with Creat Table in Acces myAWL mode

    I am using Access for the first time in a class. I used a template from another site and wrote one on my own. These are really simple and I can't figure out why the one I wrote won't work. All it is a simple "Create Table" script. Every time I try to RUN the script I get a "Syntax error in field definition error." I have been trying and trying but can't for the life of me figure out the problem. The template I used that works looks like:



    CREATE TABLE Author
    (
    AuthorId int,
    LastName varchar(255),
    FirstName varchar(255),
    Genre varchar(255)
    )

    The one I wrote that does not work looks like this:

    CREATE TABLE Authors
    (
    AuthorId int,
    AuthorFirstName varchar(255),
    AuthorLastName varchar(255),
    Genre varchar(255),
    )

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Take out the comma after the last field.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Replies: 2
    Last Post: 09-01-2011, 10:48 PM
  2. Replies: 4
    Last Post: 01-14-2011, 10:37 AM
  3. Absolute beginner qu - transferring a database
    By kirstywing in forum Access
    Replies: 2
    Last Post: 09-07-2010, 02:12 AM
  4. acces listbox hatası(acces debug)
    By carso in forum Access
    Replies: 1
    Last Post: 09-22-2009, 04:11 AM
  5. Absolute Beginner Help
    By jonesbp in forum Access
    Replies: 1
    Last Post: 08-17-2009, 08:23 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