When making a new table from a query how in Access do a create a primary key.
IE:
SELECT
Item.StockCode,
Item.LongDesc,
step1.Style,
step1.AltStyle,
step1.StyleType,
step1.Notes,
Item.ProdClass,
step1.LGTH
INTO step2
FROM
Item RIGHT JOIN
step1
ON LEFT(Item.StockCode,step1.LGTH) = step1.Style 1 1251 ps******@ibbgold.com (Paul Sparrow) wrote in message news:<4d**************************@posting.google. com>... When making a new table from a query how in Access do a create a primary key.
IE:
SELECT Item.StockCode, Item.LongDesc, step1.Style, step1.AltStyle, step1.StyleType, step1.Notes, Item.ProdClass, step1.LGTH
INTO step2
FROM Item RIGHT JOIN step1 ON LEFT(Item.StockCode,step1.LGTH) = step1.Style
AFAIK, manually. You can't do it with a query. You can do it with
DDL, not DML SQL. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Yannick Turgeon |
last post by:
Hello all,
I'm using SS2K on W2k.
I'v got a table say, humm, "Orders" with two fields in the PK:
OrderDate and CustomerID. I would like to add an "ID" column which
would be auto-increment...
|
by: jay |
last post by:
hi,
Question on Load/import command.
consider a sample table
create table table_name (
col1 timestamp not null default current timestamp,
col2 int,
col3 int,
col4 int,
primary key(col1) );...
|
by: Ilan Sebba |
last post by:
When it comes to adding records in related tables, Access is really smart.
But when I try to do the same using ADO, I am really stupid.
Say I have two parent tables (eg Course, Student) and one...
|
by: Sami |
last post by:
Please bear with me, and if you answer this question, please do it
step by step. I am new at Access, not at all sophisticated. I am
using Office XP. This will need to be read in Access for...
|
by: MJC |
last post by:
Hi all,
I have inheireted a database with no primary key and need to determine
the order in which the records were entered. The table in question
contains assessments and they are linked to an...
|
by: |
last post by:
Hi,
I am getting the following error when I run my Visual Basic
application:
"Cannot add primary key constraint since primary key is
already set for the table"
I am using datasets with...
|
by: accessbee |
last post by:
(Sorry this is so long, was trying to fully explain the situation) There are two tables that handle information on our clients. Every client has a unique ClientID, and the ClientID is the Primary Key...
|
by: ravichoudhari |
last post by:
i came accross requirement of multiple foreign keys in a table
referencing the same primary key another table. i created the table
relations using the relations editor in access. even though i...
|
by: Shestine |
last post by:
I am trying to add a column to a current table, with data in it. I am only learning, and i have no idea how to change this to make it work. Here is the script I have right now it, but what it does is...
|
by: PW |
last post by:
Hi,
I set up a relationship between two tables with the itineraryid fields
in both tables:
tblDailyItinerary
tblDailyMeals
I have a form that writes a record to tblDailyItinerary that...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
| |