How to violate a constraint?

Just because you have removed the primary key does not mean that duplicates are allowed - check your table design to ensure the field indexed yes - duplicates allowed.

The message you were getting in italian is generated by the system because this setting was not allowing duplicates

Have you tried manually adding a duplicate directly in the table to see what happens?
 
I send you a pic showing a detail of the properties of Denominazione field. Where "indicizzato" I choose No (where options are: No, Yes allow duplicates, Yes don't allow duplicates). But I still can duplicate without having a warning.
 
When I go to paste the code I'm asked to choose between three options I go on 'code generator' (and not on 'macro' or the other).
 
can you also send me the recordsource for your form - just need to check what you are updating
 
What do you mean by 'recordsource'? If I can I send you, that's for sure. I'm sorry I try to understand by myself...
 
When I try to open 'recordsource', it asks me if I want to create new...
 
all what I found is:

Code:
SELECT 
FROM [Anagrafica Aziende];
 
so may I substitute again?

[Anagrafica Aziende] instead of Denominazione after .me

?
 
Form recordsource - go to form design

attachment.php


Then click on the 3 dot carat to the right to open the query builder

then click on the view button and select SQL

attachment.php


Then copy the SQL code and paste it into your post
attachment.php
 

Attachments

  • ScreenHunter_06 Mar. 28 10.54.jpg
    ScreenHunter_06 Mar. 28 10.54.jpg
    34.5 KB · Views: 95
  • ScreenHunter_07 Mar. 28 10.58.jpg
    ScreenHunter_07 Mar. 28 10.58.jpg
    15.9 KB · Views: 99
  • ScreenHunter_08 Mar. 28 11.01.jpg
    ScreenHunter_08 Mar. 28 11.01.jpg
    14.9 KB · Views: 103
Ok, I did and I've found:

Code:
SELECT 
FROM [Anagrafica Aziende];
 
OK - better send my your db.

compact the database first, then zip it up and then upload
 
Hi CJ_London,
I am here again to thank you: the code you sent me works perfectly indeed.
The problem was due to the fact that I had not enabled macros; it took me just eleven days to understand it. Wow!

So thx again, really.

Bye :)
 

Users who are viewing this thread

Back
Top Bottom