G
gator
Query2 gets it's data from Query1 parameter (Begin Date, End Date).
Report1 is based on Query2. Thus, Report1 prompts user for Begin Date and
End Date from Query1 and displays Query2. I want the get the earliest date
from that parameter and put the Month("yyyy") in either a Label or TextBox.
I tried...
Private Sub Report_Open(Cancel As Integer)
Me.Text16.Caption = DMin("[TranDate]", "TransactionsQuery")
End Sub
.....with no success. can anyone tell me the best way to do this? Can I
somehow get that value from the Begin Date prompt? Do I need to open the
Query? If I open the query, will I need to reenter the parameters?
Report1 is based on Query2. Thus, Report1 prompts user for Begin Date and
End Date from Query1 and displays Query2. I want the get the earliest date
from that parameter and put the Month("yyyy") in either a Label or TextBox.
I tried...
Private Sub Report_Open(Cancel As Integer)
Me.Text16.Caption = DMin("[TranDate]", "TransactionsQuery")
End Sub
.....with no success. can anyone tell me the best way to do this? Can I
somehow get that value from the Begin Date prompt? Do I need to open the
Query? If I open the query, will I need to reenter the parameters?