Is there a way if a record is missing a certain field(attachment) then open short report else open long report. Or is there a way that you can have one report with two pages and say if field(attachment) is null only open display page 1 else display page 2.
I have some code like this
If (Me.Print) = 0 Then 'Checkbox
Call MsgBox("Please make sure you select a metric to print!")
End If
If (Me.Metric_Display) = 0 Then 'attachment
DoCmd.OpenReport "rptMetrics", acViewPreview, "", "", acNormal
Else
DoCmd.OpenReport "rptMetricsLong", acViewPreview, "", "", acNormal
End If
My Error says: Object doesn't support this property or method.
I have some code like this
If (Me.Print) = 0 Then 'Checkbox
Call MsgBox("Please make sure you select a metric to print!")
End If
If (Me.Metric_Display) = 0 Then 'attachment
DoCmd.OpenReport "rptMetrics", acViewPreview, "", "", acNormal
Else
DoCmd.OpenReport "rptMetricsLong", acViewPreview, "", "", acNormal
End If
My Error says: Object doesn't support this property or method.