G
Guest
I am getting an error returned as Data type mismatch when I try and use a
command button in a form to open a report to a single record. The report is
based on a query that pulls up the same "Electrical Work Order" as the form
but the "combo29" brings it up directly from the table, and is my filter for
changing records in the table easily. The error doesn't give any further
explanation, and I have used this identical code at least 40 other times,
with positive results. Anyone else ever have this problem? Help would be
greatly appreciated. I have posted the code I'm using below
DoCmd.OpenReport "Cost Electrical Work Orders1", acPreview, , "[Electrical
Work Order] = """ & Me![Combo29] & """"
End Sub
Thanks
Dustin
command button in a form to open a report to a single record. The report is
based on a query that pulls up the same "Electrical Work Order" as the form
but the "combo29" brings it up directly from the table, and is my filter for
changing records in the table easily. The error doesn't give any further
explanation, and I have used this identical code at least 40 other times,
with positive results. Anyone else ever have this problem? Help would be
greatly appreciated. I have posted the code I'm using below
DoCmd.OpenReport "Cost Electrical Work Orders1", acPreview, , "[Electrical
Work Order] = """ & Me![Combo29] & """"
End Sub
Thanks
Dustin