I'm a beginner in C # and am opening an Access report, but this report has criteria, ie, depends on numbering to open.
This numbering I have in a textbox and my question is how to pass the textbox value directly to the Access report when it is opened .
Here is the code I use to open the report:
Microsoft.Office.Interop.Access.Application accessApp = new Microsoft.Office.Interop.Access.Application(); accessApp.OpenCurrentDatabase(@"E:\Desenvolvimento\C#\ReciboFácil\ReciboFácil\bin\Debug\ReciboFacil.mdb");
accessApp.DoCmd.OpenReport("ReciboServiço");
accessApp.CloseCurrentDatabase();
accessApp.DoCmd.Quit();