Docmd.runsql

PraizesLiberato

Registered User.
Local time
Today, 14:48
Joined
Dec 6, 2009
Messages
69
I tried to use the docmd.runsql command. its gives me an error message and doesnt execute properly. The pic of the message is attached herewith.
 

Attachments

  • HELPP.JPG
    HELPP.JPG
    31.7 KB · Views: 125
it's a key violation error, just like it says. You might be appending records that would create a duplicate number in a PK field, or something similar. check your PK index setting and the records you're appending.
 
I checked the table duplicates are allowed.

This query executes when a dropdown is changed. I did try this query seperately in the query biuilder it works perfectly. but the same doesnt run when the dropdown changes.
 
how many total records does the append query try to execute? 4? is the form source the actual table that's receiving the records?
 

Users who are viewing this thread

Back
Top Bottom