Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Syntax Error or Access Violation on Form/Subform

3 views
Skip to first unread message

jhm...@gmail.com

unread,
Jan 10, 2006, 4:21:54 PM1/10/06
to
When opening a form with a subform, I get the error: Syntax Error or
Access Violation. It appears to be related to the Link Child Field and
Link Master Field properties. I want to link the forms by a field
called Template_Name that appears in both forms. If I remove the field
from either the Child or the Master, the error goes away but the
results in the subform are not filtered to match the form. This is an
ADP database. When I had this in form in an MDB, it worked properly.
Any thoughts, suggestions, workarounds?

Thanks

John Vinson

unread,
Jan 10, 2006, 9:17:52 PM1/10/06
to

What's the datatype of the Template_Name field in the two tables?
Might there be some confusion between Fields named Template_Name with
Controls on the form with the same name?

John W. Vinson[MVP]

jhm...@gmail.com

unread,
Jan 11, 2006, 9:58:11 AM1/11/06
to
The data type for the field is nvarchar in both tables. I managed to
get it to work by recreating the subform. Don't know why, but it works
now.

0 new messages