N
Nancy
how can I run one report with various sorts based on the cmdButton a user
clicks.
Here is my current code which is behind several cmdButtons that use criteria
from a text box.
-- Dim sWhereClause As String
Dim sOpenARgs As String
stDocName = "MasterDeposition_SC"
Me.Depo.SetFocus
If Me.Depo.Text <> "" Then
sWhereClause = "Depo Like [Forms]![ReportsMain]![Depo]"
sOpenARgs = "Master Deposition For Deponent of the xxxxx Firm,
L.L.C. for: " & Me.Depo.Text
DoCmd.OpenReport stDocName, acPreview, , sWhereClause, , sOpenARgs
Else
sOpenARgs = "Master Deposition of the xxxxxFirm, L.L.C. for All
Deponents"
DoCmd.OpenReport stDocName, acPreview, , , , sOpenARgs
End If
nancye
clicks.
Here is my current code which is behind several cmdButtons that use criteria
from a text box.
-- Dim sWhereClause As String
Dim sOpenARgs As String
stDocName = "MasterDeposition_SC"
Me.Depo.SetFocus
If Me.Depo.Text <> "" Then
sWhereClause = "Depo Like [Forms]![ReportsMain]![Depo]"
sOpenARgs = "Master Deposition For Deponent of the xxxxx Firm,
L.L.C. for: " & Me.Depo.Text
DoCmd.OpenReport stDocName, acPreview, , sWhereClause, , sOpenARgs
Else
sOpenARgs = "Master Deposition of the xxxxxFirm, L.L.C. for All
Deponents"
DoCmd.OpenReport stDocName, acPreview, , , , sOpenARgs
End If
nancye