'qryRpt_ByRelease
SELECT FROM tblProjectControl " _
& "tblProjectControl.TargetDT, " _
& "tblProjectControl.SomeField2, " _
& "tblProjectControl.SomeField3 " _
...
& "WHERE tblProjectControl.targetID " _
& ">=[StartDT] And <= [EndDT];"
Private Sub cmdBuildReleaseReport_Click()
'On Error GoTo Err_cmdBuildReleaseReport_Click
Dim StartDT As Date
Dim EndDT As Date
StartDT = cboReleaseMonth.Column(2)
EndDT = cboReleaseMonth.Column(3)
Dim DB As DAO.Database
Dim qdf As DAO.QueryDef
Dim rs As DAO.Recordset
Set DB = CurrentDb
Set qdf = DB.QueryDefs("qryRpt_ByRelease")
qdf.Parameters("StartDT") = StartDT
qdf.Parameters("EndDT") = EndDT
Set rs = qdf.OpenRecordset()
With rs
DoCmd.OpenQuery "qryRpt_ByRelease"
.Close
End With
End Sub
Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.
When asked, what has been your best career decision?
Deciding to stick with EE.
Being involved with EE helped me to grow personally and professionally.
Connect with Certified Experts to gain insight and support on specific technology challenges including:
We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE