If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Access > Access 2010 Create Table SQL query error

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-12-11, 08:39
jeff061768 jeff061768 is offline
Registered User
 
Join Date: Sep 2004
Posts: 2
Red face Access 2010 Create Table SQL query error

Good morning,

I'm trying to create a table in access 2010 using the following SQL statement in a query

CREATE TABLE zlu_Supervisor (
SupervisorID COUNTER CONSTRAINT PrimaryKey PRIMARY KEY,
SupervisorCode text(5) NULL,
Description text(50) NULL,
ListOrder byte NULL,
Active byte NULL

It will end up as a lookup table by inserting Distinct information from another table via SQL. Unfortunately I can't create the table. I'm receiving error
"Query must have at least one destination field". This should be pretty straight forward. Any ideas on why I would be receiving this error?

I also tried to just CREATE TABLE zlu_supervisor to see if I could then insert the new columns. That didn't work either. Same error.

Thanks,

Jeff
Reply With Quote
  #2 (permalink)  
Old 10-12-11, 09:21
jeff061768 jeff061768 is offline
Registered User
 
Join Date: Sep 2004
Posts: 2
solved

Quote:
Originally Posted by jeff061768 View Post
Good morning,

I'm trying to create a table in access 2010 using the following SQL statement in a query

CREATE TABLE zlu_Supervisor (
SupervisorID COUNTER CONSTRAINT PrimaryKey PRIMARY KEY,
SupervisorCode text(5) NULL,
Description text(50) NULL,
ListOrder byte NULL,
Active byte NULL

It will end up as a lookup table by inserting Distinct information from another table via SQL. Unfortunately I can't create the table. I'm receiving error
"Query must have at least one destination field". This should be pretty straight forward. Any ideas on why I would be receiving this error?

I also tried to just CREATE TABLE zlu_supervisor to see if I could then insert the new columns. That didn't work either. Same error.

Thanks,

Jeff
This has been solved. The content had to be enabled for this DB.

Thanks,

Jeff
Reply With Quote
Reply

Tags
create table, destination field, query, sql

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On