G
Guest
I have a simple query that retrieves a few fields from an MSDE database that
is connected via linked tables. When I run this query in datasheet view, it
works fine, no problems. However, when I use this query as the data source
for a form (the form has a text box for every field in the table) I get a
#Name? error for every field that is not included in the query.
I suppose I could use the datasheet view, but I have yet to find a way to
keep users from copying data in datasheet view. I have checked, and the
fields are not null, so I think the problem is simply that the form can't
identify a data source for those fields.
I was thinking it might make sense to select all the text boxes on the form
and simply set them to invisible rather than having the user see #Name?
errors. Does anyone know a way to select only the controls on the form that
are not being used by my query (or just to get rid of the #Name? errors)?
Any help would be appreciated.
Thanks,
Chris
is connected via linked tables. When I run this query in datasheet view, it
works fine, no problems. However, when I use this query as the data source
for a form (the form has a text box for every field in the table) I get a
#Name? error for every field that is not included in the query.
I suppose I could use the datasheet view, but I have yet to find a way to
keep users from copying data in datasheet view. I have checked, and the
fields are not null, so I think the problem is simply that the form can't
identify a data source for those fields.
I was thinking it might make sense to select all the text boxes on the form
and simply set them to invisible rather than having the user see #Name?
errors. Does anyone know a way to select only the controls on the form that
are not being used by my query (or just to get rid of the #Name? errors)?
Any help would be appreciated.
Thanks,
Chris