Hi Don,
Thank you for using Microsoft MSDN Managed Newsgroup. My name is Mark Han.
I am glad to work with you on this issue.
From your description, I understand that when you executed a macro in
access 2007, an error happened.
If I have misunderstood, please let me know.
in order to resolve the issue, I would like to explain the following
1 based on your description, I know that the append query is able to
executed successfully out of the macro. also I know in the macro, some VBA
code is executed to create the destination tables. that might be the casue
of the issue.
2 Based on the error message, I would like to explain:
--Lock Violation — Is the destination table locked? The destination table
could be open in Design view or open by another user on the network. This
would cause a lock violation and make the append query fail.
--Key Violation — The destination table may have a primary key or an index
with the No Duplicates property set to Yes. Check the design of the
destination table for the primary key and any index with No Duplicates set
to Yes. Check the data you are appending to make sure there are no key
violations in the primary key or any index with No Duplicates set to Yes.
--Validation Rule Violation — Check the design of the destination table for
any required fields. If any field is required and you do not append data to
this field, you get this error. Also, check the destination table for any
Text fields with Allow Zero Length set to No. If you are appending blank
data to a Text field that has Allow Zero Length set to No, you can get this
error. Also, check for validation rules for the fields. For example, you
may have the following validation rule for the Quantity field: >=10 — in
this case, you cannot append records with a quantity less than 10.
Besides, there is an article to share with
you:
http://office.microsoft.com/en-us/ac...860631033.aspx
Hope the above helpful.
If there is anything unclear, please do not hesitate to let me know.
Have a nice day.
Best regards,
Mark Han
Microsoft Online Community Support
===========================================================
Delighting our customers is our #1 priority. We welcome your
comments and suggestions about how we can improve the
support we provide to you. Please feel free to let my manager
know what you think of the level of service provided. You can
send feedback directly to my manager at:
(E-Mail Removed).
===========================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.
Note: MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or
a Microsoft Support Engineer within 2 business day is acceptable. Please
note that each follow up response may take approximately
2 business days as the support professional working with you may need
further investigation to reach the most efficient resolution.
The offering is not appropriate for situations that require urgent,
real-time or phone-based interactions. Issues of this nature are
best handled working with a dedicated Microsoft Support Engineer by
contacting Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/en-us/subs.../aa948874.aspx
============================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
=========================================================