Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
DoCmd.OpenReport "YourReport", acViewNormal, "YourQuery"
Dim strLink as String
If Me.YourFrameName.Value = 1 Then
strLink = "qryFirst"
Else
strLink = "qrySecond"
End if
DoCmd.OpenReport "YourReport", acViewNormal, strLink
UPDATE tblReportFlag SET tblReportFlag.ReportFlag = [Forms]![YourFormName]![YourFrameName].[value];
DoCmd.OpenQuery "YourUpdateQueryName"
Dim intPrint as Integer
intPrint = DLookup("[ReportFlag]", "YourTable")
If intPrint = 1 Then
strLink = "qryFirst"
Else
strLink = "qrySecond"
End if
DoCmd.OpenReport "YourReport", acViewNormal, strLink
Dim intPrint as Integer
intPrint = DLookup("[ReportFlag]", "YourTable")
DoCmd.OpenReport "YourReport", acViewDesign
If intPrint = 1 Then
Reports![YourReport].RecordSource = "qryFirst"
Else
Reports![YourReport].RecordSource = "qrySecond"
End if
DoCmd.OpenReport "YourReport", acViewNormal
DoCmd.Close acReport, "YourReport", acSaveNo
Dim intPrint as Integer
intPrint = DLookup("[ReportFlag]", "YourTable")
If intPrint = 1 Then
DoCmd.OpenReport "YourReport1", acViewPreview
Else
DoCmd.OpenReport "YourReport2", acViewPreview
End If