Marshall said:
I thought MTL Loads was the name of your report??? Reports
do not contain any fields. Reports only contain controls
that can be used to display values (possibly of fields in
the report's Recordf Source).
I am asking about the report's Record Source that is
specified in the report's Record Source property. Open the
report in design view, then display the report's property
sheet. Look at the Record Source property and if it is an
SQL statement Copy/Paste it. If it is the name of a query,
go to the Database window, select the Queries tab, select
the query and clcik on the Design button. Then use the View
menu to display the query's SQL View and Copy/Paste the SQL
statement.
Now that ruralguy has posted the query for you, we will try
to proceed.
There are two ways to deal with your problem. Although I
normally recommend using the approach the ruralguy
suggested, based on how this thread has progressed, maybe
you should try using this relativey simple modification to
your report's Record Source query:
SELECT [Mtl Loads].Date, [Mtl Loads].Customer,
[Mtl Loads].[Remorque #1], [Mtl Loads].[Emplacement #1],
[Mtl Loads].[Remorque #2], [Mtl Loads].[Emplacement #2],
[Mtl Loads].[Remorque #3], [Mtl Loads].[Emplacement #3],
[Mtl Loads].[Remorque #4], [Mtl Loads].[Emplacement #4]
FROM [Mtl Loads]
WHERE ([Mtl Loads].Date >=
[Forms]![frmReports]![txtDateFrom]
And [Mtl Loads].Date <=
[Forms]![frmReports]![txtDateTo])
AND ([Mtl Loads].Customer =
[Forms]![frmReports]![cboSearch]
OR [Forms]![frmReports]![cboSearch] =
"All Customer")
ORDER BY [Mtl Loads].Date, [Mtl Loads].Customer