I have tried tinkering with these formats a little, and can't seem to get the data to pull out. Does anyone see any contextual/format type problems here? The query is created and runs, but the data (which I know is there) is not showing up:
Any suggestions would be greatly appreciated.. if need more detail, please ask.
Stephen![[infinity] [infinity] [infinity]](/data/assets/smilies/infinity.gif)
"Jesus saith unto him, I am the way, the truth, and the life:
no man cometh unto the Father, but by me." John 14:6 KJV
Code:
Private Sub CreateListSource()
Dim strQueryName As String
Dim myQuery As QueryDef
strQueryName = "ListSource"
Dim strSQL As String
strSQL = "SELECT A.[Status] " & _
"FROM tblCompletedStatuses A " & _
"WHERE ((A.[TeamLeader]) = Forms!frmAuditReviewSelection!cmbTeamLeader) " & _
"AND ((A.[Year]) = Forms!frmAuditReviewSelection!cmbYear) " & _
"AND ((A.[Month]) = Forms!frmAuditReviewSelection.cmbMonth) " & _
"AND ((A.[AuditType]) = Forms!frmAuditReviewSelection.frameAuditType);"
Set myQuery = CurrentDb.CreateQueryDef([strQueryName], strSQL)
DoCmd.OpenQuery strQueryName
End Sub
Any suggestions would be greatly appreciated.. if need more detail, please ask.
Stephen
![[infinity] [infinity] [infinity]](/data/assets/smilies/infinity.gif)
"Jesus saith unto him, I am the way, the truth, and the life:
no man cometh unto the Father, but by me." John 14:6 KJV