B
Brett Baisley
Hello
I am trying to use SQL to create my tables in a Access db, but I am having
trouble. The only way I can get to an SQL editor is by creating a black
query and setting it to SQL View. So that is what I did. Now I have all of
my SQL statements in there, but when I try to run it, it doesn't work. I get
an Syntax error in Create Table Statement.
Its a simple thing, just so I can get the hang of it:
Create Table Artist (ArtistID int, Name text, Primary Key (ArtistID));
Create Table Albums ( AlbumID int, Name text, ArtistID int, Primary Key
(AlbumID), Foreign Key (ArtistID) References Artists(Name));
But it won't do the second one. Any suggestions?
I am trying to use SQL to create my tables in a Access db, but I am having
trouble. The only way I can get to an SQL editor is by creating a black
query and setting it to SQL View. So that is what I did. Now I have all of
my SQL statements in there, but when I try to run it, it doesn't work. I get
an Syntax error in Create Table Statement.
Its a simple thing, just so I can get the hang of it:
Create Table Artist (ArtistID int, Name text, Primary Key (ArtistID));
Create Table Albums ( AlbumID int, Name text, ArtistID int, Primary Key
(AlbumID), Foreign Key (ArtistID) References Artists(Name));
But it won't do the second one. Any suggestions?