Primary Key

  • Thread starter Thread starter lynn
  • Start date Start date
L

lynn

Is there a way to set a field as being the primary key in
either a macro or a make table query? Thanks for any help
you can give me!
 
Hi Lynn,

You could use Data Definition Language (DDL), example:

CREATE TABLE Table2 (Id COUNTER CONSTRAINT PrimaryKey PRIMARY KEY, MyText
TEXT (10))

For details see the following knowledge base article:

ACC: Create and Drop Tables and Relationships Using SQL DDL (116145)
http://support.microsoft.com/default.aspx?scid=KB;EN-US;116145


I hope this helps! If you have additional questions on this topic, please
respond back to this posting.


Regards,

Eric Butts
Microsoft Access Support
(e-mail address removed)
"Microsoft Security Announcement: Have you installed the patch for
Microsoft Security Bulletin MS03-026? If not Microsoft strongly advises
you to review the information at the following link regarding Microsoft
Security Bulletin MS03-026
<http://www.microsoft.com/security/security_bulletins/ms03-026.asp> and/or
to visit Windows Update at <http://windowsupdate.microsoft.com/> to install
the patch. Running the SCAN program from the Windows Update site will help
to insure you are current with all security patches, not just MS03-026."

This posting is provided "AS IS" with no warranties, and confers no rights



--------------------
| Content-Class: urn:content-classes:message
| From: "lynn" <[email protected]>
| Sender: "lynn" <[email protected]>
| Subject: Primary Key
| Date: Thu, 12 Aug 2004 07:25:31 -0700
| Lines: 3
| Message-ID: <[email protected]>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="iso-8859-1"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
| Thread-Index: AcSAeDkfNjcjdaK/T3+K3/dujYpnXA==
| Newsgroups: microsoft.public.access.macros
| Path: cpmsftngxa06.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.access.macros:32853
| NNTP-Posting-Host: tk2msftngxa13.phx.gbl 10.40.1.165
| X-Tomcat-NG: microsoft.public.access.macros
|
| Is there a way to set a field as being the primary key in
| either a macro or a make table query? Thanks for any help
| you can give me!
|
 
Back
Top