From: | "Jackson, DeJuan" <djackson(at)cpsgroup(dot)com> |
---|---|
To: | JT Kirkpatrick <jt-kirkpatrick(at)mpsllc(dot)com>, "'pgsql-sql(at)hub(dot)org'" <pgsql-sql(at)hub(dot)org> |
Subject: | RE: [SQL] select nextval. . . |
Date: | 1999-05-27 15:27:38 |
Message-ID: | D05EF808F2DFD211AE4A00105AA1B5D21C4BCF@cpsmail |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
> i am connecting to a postgres 6.4.2 database with msaccess97. in that
> postgres database i have a sequence defined. in access i have a form,
> with
> only one textbox -- when i open that form i'd like to populate that
> textbox
> with the next value in that sequence. i can get the next value from psql
> (select nextval('sequencename');), but i can't seem to figure out how to
> get that nextval from within access97 into a control on a form. i can
> design a pass-through query that inserts the nextval into a database, but
> that isn't what i want to do (it also exposes some risk of non-uniqueness
> that the sequence helps to ensure). got any ideas??
>
> jt
>
You're going to have to implement this all on your own. As far as I know
Access doesn't have a way to start a transaction with a form, therefore
sequences lose a lot of their benefits.
A viable alternative might be to grab the generated sequence number after
the insert, and display it then.
-DEJ
From | Date | Subject | |
---|---|---|---|
Next Message | JT Kirkpatrick | 1999-05-27 15:43:15 | RE: [SQL] select nextval. . . |
Previous Message | Jackson, DeJuan | 1999-05-27 15:17:30 | RE: [SQL] VARCHAR(50), CHAR(50) or TEXT ? |