N
NewsLeecher User
I am struggling with stlinkcriteria and more than one selection
criteria
The underlying query has the two fields I am interest in:
Workflow
TFCompleteBy
The Workflow can contain several entries, but the one I am
particularly interested in is where the data is "In Evaluation Loop"
If I then use stdocname/stlinkcriteria as:
Dim stDocName As String
Dim stlinkcriteria As String
stDocName = "StatusPrintForEvalUnderReview"
stlinkcriteria = "[Workflow] = 'In Evaluation Loop'"
stDocName = "StatusPrintForEvalUnderReview"
DoCmd.OpenReport stDocName, acPreview, , stlinkcriteria
This works perfectly, previewing the report from the underlying
query with all documents at the status "In Evaluation Loop"
The documents can then be further subdivided as to priority, and the
TFCompleteBy field will do that. At the moment I am only using one
filter.
I therefore want either to pull out the documents where TFCompleteBy
= "PRT" or pull all of the documents out for an all up report.
I want to do this using wildcards as later I may want to add further
categories and keep the same underlying code.
I set up a combo box with two entries "PRT" and "*" for the
wildcard.
Forms![frm_TestGroupTestFormTracker]!eventfiltercombo
The combo box updates a textbox called txtevent (uses main form Open
event to ensure that it always contains data)
The main form is called
What I want to do is use stlinkcriteria to filter a report called by
a Command Button such that I can filter the report
on the Workflow and TF CompleteBy data. The one listed above works
fine, but I can neither get the wildcard option
working, or both criteria working together. I used to have a great
cribsheet which showed how to "add" string statements
as in >stlinkcriteria = "[Workflow] = 'In Evaluation Loop'"< to
data derived from combo boxes or text bokes, but I have lost it.
I suppose what I am trying to get is a working version of:
stlinkcriteria = "[Workflow] = 'In Evaluation Loop'" & "AND
TFCompleteBy = Forms![frm_TestGroupTestFormTracker]!txtevent"
Where it would work if the TFCompleteBy field was PRT or * so the
wildcard would work.
Any help appreciated, I have spen half the day googling this but
nothing appears to match what I am trying to do, and a lot of the
stlinkcriteria
questions appear to be around dates.
Thanks
J
criteria
The underlying query has the two fields I am interest in:
Workflow
TFCompleteBy
The Workflow can contain several entries, but the one I am
particularly interested in is where the data is "In Evaluation Loop"
If I then use stdocname/stlinkcriteria as:
Dim stDocName As String
Dim stlinkcriteria As String
stDocName = "StatusPrintForEvalUnderReview"
stlinkcriteria = "[Workflow] = 'In Evaluation Loop'"
stDocName = "StatusPrintForEvalUnderReview"
DoCmd.OpenReport stDocName, acPreview, , stlinkcriteria
This works perfectly, previewing the report from the underlying
query with all documents at the status "In Evaluation Loop"
The documents can then be further subdivided as to priority, and the
TFCompleteBy field will do that. At the moment I am only using one
filter.
I therefore want either to pull out the documents where TFCompleteBy
= "PRT" or pull all of the documents out for an all up report.
I want to do this using wildcards as later I may want to add further
categories and keep the same underlying code.
I set up a combo box with two entries "PRT" and "*" for the
wildcard.
Forms![frm_TestGroupTestFormTracker]!eventfiltercombo
The combo box updates a textbox called txtevent (uses main form Open
event to ensure that it always contains data)
The main form is called
What I want to do is use stlinkcriteria to filter a report called by
a Command Button such that I can filter the report
on the Workflow and TF CompleteBy data. The one listed above works
fine, but I can neither get the wildcard option
working, or both criteria working together. I used to have a great
cribsheet which showed how to "add" string statements
as in >stlinkcriteria = "[Workflow] = 'In Evaluation Loop'"< to
data derived from combo boxes or text bokes, but I have lost it.
I suppose what I am trying to get is a working version of:
stlinkcriteria = "[Workflow] = 'In Evaluation Loop'" & "AND
TFCompleteBy = Forms![frm_TestGroupTestFormTracker]!txtevent"
Where it would work if the TFCompleteBy field was PRT or * so the
wildcard would work.
Any help appreciated, I have spen half the day googling this but
nothing appears to match what I am trying to do, and a lot of the
stlinkcriteria
questions appear to be around dates.
Thanks
J