L
lmv
When I open my report and then right mouse to get to print then go to fax by
the time I get to the fax I have forgotten the number the report needs to be
faxed to and unlike word it doesn't search for a phone number and fill in the
box. SO, I have created a form that comes up the same time as the report with
the fax number focused so I can copy and paste. BUT, it is not getting the
same filtered information as the report. Can someone tell me how to call the
form at the same time as the report WITH the same filtered info? Both the
report and the faxform are based on the same qry.
I tried below but it doesn't filter properly. I also tried with the filter
below the form again but it doesn't work either. By the way is there any way
to have this trigger only IF someone goes to the fax option in the windows
drop down?
The cmd button is on the OrderWDetails form...
Thanx!!
Private Sub cmdPrevEstimate_Click()
On Error GoTo Err_cmdPrevEstimate_Click
DoCmd.OpenReport "rptEstimateHUPA", acPreview
Reports![rptEstimateHUPA].Filter = "OrderID = " & Me![OrderID]
Reports![rptEstimateHUPA].FilterOn = True
DoCmd.RunCommand acCmdZoom100
DoCmd.MoveSize 1, 1, 13000, 9100
DoCmd.OpenForm "f_Supplierfax"
Exit_cmdPrevEstimate_Click:
Exit Sub
Err_cmdPrevEstimate_Click:
MsgBox err.Description
Resume Exit_cmdPrevEstimate_Click
End Sub
the time I get to the fax I have forgotten the number the report needs to be
faxed to and unlike word it doesn't search for a phone number and fill in the
box. SO, I have created a form that comes up the same time as the report with
the fax number focused so I can copy and paste. BUT, it is not getting the
same filtered information as the report. Can someone tell me how to call the
form at the same time as the report WITH the same filtered info? Both the
report and the faxform are based on the same qry.
I tried below but it doesn't filter properly. I also tried with the filter
below the form again but it doesn't work either. By the way is there any way
to have this trigger only IF someone goes to the fax option in the windows
drop down?
The cmd button is on the OrderWDetails form...
Thanx!!
Private Sub cmdPrevEstimate_Click()
On Error GoTo Err_cmdPrevEstimate_Click
DoCmd.OpenReport "rptEstimateHUPA", acPreview
Reports![rptEstimateHUPA].Filter = "OrderID = " & Me![OrderID]
Reports![rptEstimateHUPA].FilterOn = True
DoCmd.RunCommand acCmdZoom100
DoCmd.MoveSize 1, 1, 13000, 9100
DoCmd.OpenForm "f_Supplierfax"
Exit_cmdPrevEstimate_Click:
Exit Sub
Err_cmdPrevEstimate_Click:
MsgBox err.Description
Resume Exit_cmdPrevEstimate_Click
End Sub