Trevor Howard
Registered User.
- Local time
- Today, 00:13
- Joined
- Aug 29, 2002
- Messages
- 64
Hello everyone
I have made a report “Service PPM”.
I have a service form (Service table) with subforms (“Contracts”, “Service Visits”, “Peripheral” and “Peripheral extras” tables).
My print button on the service form has the code below on the on click event. My problem is when the print button is activated, all the records are printed. All I want is the one selected in my form. I just cant work this out, spent days on it! I have attached a screen shot of my relationship.
DoCmd.OpenReport "Service PPM", , , "[ServiceID] = " & Me![ServiceID]
I have tried building the report using a query but same results. Something I am not sure of is, is the Customer table the sauce of the problem as it is before my service table??? (I need to have the customer name and address on the report)
Thanks for any thoughts!
Trevor
I have made a report “Service PPM”.
I have a service form (Service table) with subforms (“Contracts”, “Service Visits”, “Peripheral” and “Peripheral extras” tables).
My print button on the service form has the code below on the on click event. My problem is when the print button is activated, all the records are printed. All I want is the one selected in my form. I just cant work this out, spent days on it! I have attached a screen shot of my relationship.
DoCmd.OpenReport "Service PPM", , , "[ServiceID] = " & Me![ServiceID]
I have tried building the report using a query but same results. Something I am not sure of is, is the Customer table the sauce of the problem as it is before my service table??? (I need to have the customer name and address on the report)
Thanks for any thoughts!
Trevor