| | |
Error when using a contraint in Access
Please support our Legacy and Other Languages advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Dec 2008
Posts: 40
Reputation:
Solved Threads: 0
Hi,
I am trying to complete an example from the book SQL for Microsoft Access. I have typed it into Access just as it appears in the book. When I run it, however, I get an error message telling me that there is a "Syntax error in Constraint clause." I have checked and checked and I am fairly certain that I typed it in right. Anyway, here is the code from the book.
Does Access 2007 support constraints? If so, then could you please offer a guess as to what the problem could be? Oh, and yes, I did previously create the Toys table, so it can't be generating an error because of that being missing.
Ren
I am trying to complete an example from the book SQL for Microsoft Access. I have typed it into Access just as it appears in the book. When I run it, however, I get an error message telling me that there is a "Syntax error in Constraint clause." I have checked and checked and I am fairly certain that I typed it in right. Anyway, here is the code from the book.
CREATE TABLE Manufacturers ( ManufacturerID INTEGER CONSTRAINT ManfID PRIMARY KEY, ToyID INTEGER NOT NULL, CompanyName CHAR (50) NOT NULL, Address CHAR (50) NOT NULL, City CHAR (20) NOT NULL, State CHAR (2) NOT NULL, AreaCode CHAR (3) NOT NULL, PhoneNumber CHAR (8) NOT NULL UNIQUE, CONSTRAINT ToyFk FOREIGN KEY (ToyID) REFERENCES Toys (ToyID) ON UPDATE CASCADE ON DELETE CASCADE );
Does Access 2007 support constraints? If so, then could you please offer a guess as to what the problem could be? Oh, and yes, I did previously create the Toys table, so it can't be generating an error because of that being missing.
Ren
![]() |
Similar Threads
- error occurs on trying to access the site of the httphandler by multilple clients (ASP.NET)
- phpMyAdmin access denied error on Win server 2003 - Mysql & PHP. Tried everything (PHP)
- ERROR:::Windows Can't access the specified device,file or path. (Windows NT / 2000 / XP)
- Trying to Set up Virtual Folder Running Apache 2.2, I keep getting a 403 access error (PHP)
- ERROR OCOURED-29279->ORA-29279: SMTP permanent error: 500 Access Denied By Port Acces (Oracle)
- VAIO Recovery ERROR, operating system error, disk access error (Troubleshooting Dead Machines)
- c++ debugging error (C++)
- *error on page*.....cannot access *help* (Web Browsers)
Other Threads in the Legacy and Other Languages Forum
- Previous Thread: Foxpro application with timer
- Next Thread: need university help first year
Views: 954 | Replies: 0
| Thread Tools | Search this Thread |
Tag cloud for Legacy and Other Languages





