Forums

This topic is locked

Help: choose a unique key?

Posted 13 Nov 2001 14:10:40
1
has voted
13 Nov 2001 14:10:40 steven levy posted:
I am building an update form.
The MS Access Table has 2 columns
id - autonumber, unique, primary
field1 - text
Using the insert update form dialog everything seems ok but I get this message:
"... choise a unique key ... "
BUT I already have. Why is this message coming up?


Steven Levy, 781-771-2779,

Replies

Replied 13 Nov 2001 16:18:53
13 Nov 2001 16:18:53 Viktor Farcic replied:
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
Using the insert update form...
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>

Are you inserting or updating records?
To update you need to filter data with unique key.

Replied 13 Nov 2001 18:08:24
13 Nov 2001 18:08:24 steven levy replied:
I am updating records. I have used a filter. It seems to accept a non-unique column which is strange.

Steven Levy, 781-771-2779,
Replied 14 Nov 2001 11:16:25
14 Nov 2001 11:16:25 Kevin Abbott replied:
The recordset that your using to update the record with, have you selected selected (eh?!?!) in the recordset dialog.

What I'm trying to say is in the recordset only select the column you are trying to update (not the all radio button), as if you try to update the unique column it won't work.

www.k.abbott.btinternet.co.uk/
Replied 14 Nov 2001 23:03:31
14 Nov 2001 23:03:31 steven levy replied:
To create an update form I do the following:
1 - create record set
2 - insert update form - include unique id column.
3 - change column to hidden
4 - fix query string to remove reference to id.
Is this a bug - or am I doing something wrong.


Steven Levy,
Replied 19 Nov 2001 13:14:05
19 Nov 2001 13:14:05 Kevin Abbott replied:
How are you removing the reference to the unique ID?

Are you doing this manually because this might be your problem.

When creating the recordset that your using to update the record with, choose only the column that you are updating. So select the selected radio button from the recordset dialog.

www.k.abbott.btinternet.co.uk/

Reply to this topic