Hello
I have a report that runs off my Equipment table. I am trying to run the report based of the serial number. I have a parameter in the report that runs it by serial fine but I need tio do it by Visual.
When I use this
Private Sub LaVolpeButton1_Click()
Dim txtSerial As String <---My text box to input serial #
With frmReports.CR1
.DataFiles(0) = App.Path & "\Database.mdb"
.ReportFileName = App.Path & "\Reports\EQUIPMENT.rpt"
.SelectionFormula = "{EQUIPMENT.SERIAL}=" & Chr(34) & x & Chr(34)
.Action = 1
.PageZoom (89)
End With
The report comes up empty
And when I use
Private Sub LaVolpeButton1_Click()
Dim txtSerial As String <---My text box to input serial #
With frmReports.CR1
.DataFiles(0) = App.Path & "\TSG Database.mdb"
.ReportFileName = App.Path & "\Reports\EQUIPMENT.rpt"
.ParameterFields(0) = "REPSER;" & txtSerial & ";True"
& Chr(34)
.Action = 1
.PageZoom (89)
End With
My .Action = 1 comes back as an invalid parameter
I just need to input the serial number into a text box and run the report. Any help would be appreciated
Thanks
Bob
I have a report that runs off my Equipment table. I am trying to run the report based of the serial number. I have a parameter in the report that runs it by serial fine but I need tio do it by Visual.
When I use this
Private Sub LaVolpeButton1_Click()
Dim txtSerial As String <---My text box to input serial #
With frmReports.CR1
.DataFiles(0) = App.Path & "\Database.mdb"
.ReportFileName = App.Path & "\Reports\EQUIPMENT.rpt"
.SelectionFormula = "{EQUIPMENT.SERIAL}=" & Chr(34) & x & Chr(34)
.Action = 1
.PageZoom (89)
End With
The report comes up empty
And when I use
Private Sub LaVolpeButton1_Click()
Dim txtSerial As String <---My text box to input serial #
With frmReports.CR1
.DataFiles(0) = App.Path & "\TSG Database.mdb"
.ReportFileName = App.Path & "\Reports\EQUIPMENT.rpt"
.ParameterFields(0) = "REPSER;" & txtSerial & ";True"
& Chr(34)
.Action = 1
.PageZoom (89)
End With
My .Action = 1 comes back as an invalid parameter
I just need to input the serial number into a text box and run the report. Any help would be appreciated
Thanks
Bob