X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 14E53D1D1D5 for ; Mon, 26 Jan 2004 15:19:37 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 95843-10 for ; Mon, 26 Jan 2004 11:19:09 -0400 (AST) Received: from web20813.mail.yahoo.com (web20813.mail.yahoo.com [216.136.226.218]) by svr1.postgresql.org (Postfix) with SMTP id 76D71D1B4A1 for ; Mon, 26 Jan 2004 11:19:04 -0400 (AST) Message-ID: <20040126151907.47148.qmail@web20813.mail.yahoo.com> Received: from [208.13.35.65] by web20813.mail.yahoo.com via HTTP; Mon, 26 Jan 2004 07:19:07 PST Date: Mon, 26 Jan 2004 07:19:07 -0800 (PST) From: Jeff Eckermann Subject: Re: [HELP] MSAccess picks wrong keys To: Aaron Spike , pgsql-odbc@postgresql.org In-Reply-To: <4014D1FF.4943.C3ADC@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200401/94 X-Sequence-Number: 3723 --- Aaron Spike wrote: > Using MS Access 2003 and pgsql-odbc 7.03.02.00. > > Today I added a column (Course_LongName) to a table > (Courses), when I > relinked the table in Access decided that that > column should be part > of > the composite primary key. The Correct Key is > "Course_Number", > "SchoolYear", "SchoolYearSemester". Access Chooses > "Course_Number", > "SchoolYearSemester", "Course_LongName" every time. > I can't get it to > let > go! > > I've deleted the link and relinked/refreshed. I've > checked and > unchecked "Recognise unique indexes" to no avail. Is > there any way I > can > make this go right? > > How does Access choose keys? Can I trick it? > > Is there a way to force Access to display the key > choosing interface > when > linking tables from postgresql? > > > Aaron Spike > > My Table description: > Table "public.Courses" > Column | Type > | Modifiers > --------------------+--------------------------------+----------- > Course_Number | character varying(7) > | not null > Course_ShortName | character varying(12) > | > Course_Credit | double precision > | not null > ModifiedBy | text > | > Modified | timestamp(0) without time zone > | > Course_Description | text > | > SchoolYear | character varying(6) > | not null > SchoolYearSemester | character varying(1) > | not null > Course_LongName | character varying(255) > | > Indexes: Courses_pkey primary key btree > ("Course_Number", > "SchoolYear", "SchoolYearSemester") > Triggers: courses_update_modified