T
ThomasK via AccessMonster.com
I have a subform that I made using the subform wizard. The subform is based
on a query, AllInspections. I added another field to the table and tried to
add it to the form (the query builder in the record source field of the form
properties) and got an error message. "The string returned by the builder was
too long. The result will be truncated". And it was truncated. It cut off the
last few characters. This is what it has now...
SELECT DISTINCTROW QAllInspections.InspectionsID, QAllInspections.AddressID,
QAllInspections.InspectionType, QAllInspections.InspectionDate,
QAllInspections.CompletionDate, QAllInspections.InspectionNotes,
QAllInspections.InspectorName, QAllInspections.PermitsPlusNumber,
QAllInspections.ComplainantName, QAllInspections.MethodReceived,
QAllInspections.InspectorAssigned, QAllInspections.Description,
QAllInspections.Findings, QAllInspections.Justified, QAllInspections.
DateAssigned, QAllInspections.DateRecieved, QAllInspections.
SupervisorAssigned, QAllInspections.Business, QAllInspections.Residence,
QAllInspections.ComplainantPhone, QAllInspections.Status, QAllInspections.
EvtNotes, QAllInspections.EvtContactFirstName, QAllInspections.
EvtContactLastName, QAllInspections.EvtStartDate, QAllInspections.EvtEndDate,
QAllInspections.EvtName, QAllInspections.Tents, QAllInspections.Cooking,
QAllInspections.BusinessName, QAllInspections.OccupancyClass, QAllInspections.
RepFirstName, QAllInspections.RepLastName, QAllInspections.BusOwnerFirstName,
QAllInspections.BusOwnerLastName, QAllInspections.BuildOwnerFirstName,
QAllInspections.BuildOwnerLastName, QAllInspections.PhoneNumber,
QAllInspections.FaxNumber, QAllInspections.HomeStatus, QAllInspections.
InspectionCycle, QAllInspections.CofO, QAllInspections.CofOIssueDate,
QAllInspections.CofORefferalDate, QAllInspections.Sorority, QAllInspections.
Fraternity, QAllInspections.ADHSLicenseType, QAllInspections.ADHSLicenseDate,
QAllInspections.NumberOfResidents, QAllInspections.NumberLicensed,
QAllInspections.NumberOfBeds, QAllInspections.ResponsiblePartyName,
QAllInspections.ResponsiblePartyPhone, QAllInspections.
ComplainantStreetNumber, QAllInspections.ComplainantDirection,
QAllInspections.ComplainantStreetName, QAllInspections.ComplainantSuite,
QAllInspections.ComplainantBuildingNumber, QAllInspections.
ComplainantLocation, QAllInspections.ReferralType, QAllInspections.
ComplainantCity, QAllInspections.ComplainantState, QAllInspections.
ComplainantZip, QAllInspections.EvtContactPhone FRO
The FROM is truncated. Is there a way to use this query, or fix it? Are some
queries just too long to use? I know I have a lot of fields, but it seems
like I should be able to do this. Would it change anything if I were to just
use the "*" for all fields? I still want my subform to work, and only show
records matching the main forms primary key.
Thanks for the help.
on a query, AllInspections. I added another field to the table and tried to
add it to the form (the query builder in the record source field of the form
properties) and got an error message. "The string returned by the builder was
too long. The result will be truncated". And it was truncated. It cut off the
last few characters. This is what it has now...
SELECT DISTINCTROW QAllInspections.InspectionsID, QAllInspections.AddressID,
QAllInspections.InspectionType, QAllInspections.InspectionDate,
QAllInspections.CompletionDate, QAllInspections.InspectionNotes,
QAllInspections.InspectorName, QAllInspections.PermitsPlusNumber,
QAllInspections.ComplainantName, QAllInspections.MethodReceived,
QAllInspections.InspectorAssigned, QAllInspections.Description,
QAllInspections.Findings, QAllInspections.Justified, QAllInspections.
DateAssigned, QAllInspections.DateRecieved, QAllInspections.
SupervisorAssigned, QAllInspections.Business, QAllInspections.Residence,
QAllInspections.ComplainantPhone, QAllInspections.Status, QAllInspections.
EvtNotes, QAllInspections.EvtContactFirstName, QAllInspections.
EvtContactLastName, QAllInspections.EvtStartDate, QAllInspections.EvtEndDate,
QAllInspections.EvtName, QAllInspections.Tents, QAllInspections.Cooking,
QAllInspections.BusinessName, QAllInspections.OccupancyClass, QAllInspections.
RepFirstName, QAllInspections.RepLastName, QAllInspections.BusOwnerFirstName,
QAllInspections.BusOwnerLastName, QAllInspections.BuildOwnerFirstName,
QAllInspections.BuildOwnerLastName, QAllInspections.PhoneNumber,
QAllInspections.FaxNumber, QAllInspections.HomeStatus, QAllInspections.
InspectionCycle, QAllInspections.CofO, QAllInspections.CofOIssueDate,
QAllInspections.CofORefferalDate, QAllInspections.Sorority, QAllInspections.
Fraternity, QAllInspections.ADHSLicenseType, QAllInspections.ADHSLicenseDate,
QAllInspections.NumberOfResidents, QAllInspections.NumberLicensed,
QAllInspections.NumberOfBeds, QAllInspections.ResponsiblePartyName,
QAllInspections.ResponsiblePartyPhone, QAllInspections.
ComplainantStreetNumber, QAllInspections.ComplainantDirection,
QAllInspections.ComplainantStreetName, QAllInspections.ComplainantSuite,
QAllInspections.ComplainantBuildingNumber, QAllInspections.
ComplainantLocation, QAllInspections.ReferralType, QAllInspections.
ComplainantCity, QAllInspections.ComplainantState, QAllInspections.
ComplainantZip, QAllInspections.EvtContactPhone FRO
The FROM is truncated. Is there a way to use this query, or fix it? Are some
queries just too long to use? I know I have a lot of fields, but it seems
like I should be able to do this. Would it change anything if I were to just
use the "*" for all fields? I still want my subform to work, and only show
records matching the main forms primary key.
Thanks for the help.