RatherBeeHome said:
Yes, I am using the DISTINCT keyword to pull only distinct records
but I'm not doing this in a query through Access. I am using VBA
code with the DoCMD keyword to run the SQL statement. Is there a way
around this?
I think I'd better see the code you're using. I'm not sure how you are
using DoCmd and displaying the results on a form. If it's a bound form,
the data it displays should be determined by its RecordSource property,
not by any OpenQuery or RunSQL method you may call.
Please open the form in design view, open the property sheet of the
form, go to the Data tab of the property sheet, and copy what's in the
Record Source property, and paste it into your reply to this message.
If that is the name of a stored query, please copy the SQL view of that
query and paste that into your reply.
If it turns out that it's a query -- whether a stored query or an inline
SQL statement -- that uses the DISTINCT keyword, that's probably the
reason your fields are being truncated. You'll need to find a way to
get the data you want without using the DISTINCT keyword. It may be
that you are using it unnecessarily, but I can't say yet.