Code:
Private Sub Cmd_RunQuery_Click()
Dim db As DAO.Database
Dim qdf As DAO.QueryDef
Dim varItem As Variant
Dim strCriteriaHull As String
Dim strCriteriaWS As String
Dim strCriteriaLeadDept As String
Dim strCriteriaPhase As String
Dim CalcSSBegin As Date
Dim CalcSSEnf As Date
Dim strSQL As String
Dim qryDef As QueryDef
Set db = CurrentDb()
Set qdf = db.QueryDefs("qryform")
For Each varItem In Me!cmboHull.ItemsSelected
strCriteriaHull = strCriteriaHull & ",'" & Me!cmboHull.ItemData(varItem) & "'"
Next varItem
For Each varItem In Me!cmboWS.ItemsSelected
strCriteriaWS = strCriteriaWS & ",'" & Me!cmboWS.ItemData(varItem) & "'"
Next varItem
For Each varItem In Me!cmboLeadDept.ItemsSelected
strCriteriaLeadDept = strCriteriaLeadDept & ",'" & Me!cmboLeadDept.ItemData(varItem) & "'"
Next varItem
For Each varItem In Me!cmboPhase.ItemsSelected
strCriteriaPhase = strCriteriaPhase & ",'" & Me!cmboPhase.ItemData(varItem) & "'"
Next varItem
'you don't need these
'strCriteriaHull = Right(strCriteriaHull, Len(strCriteriaHull) - 1)
'strCriteriaWS = Right(strCriteriaWS, Len(strCriteriaWS) - 1)
'strCriteriaLeadDept = Right(strCriteriaLeadDept, Len(strCriteriaLeadDept) - 1)
'strCriteriaPhase = Right(strCriteriaPhase, Len(strCriteriaPhase) - 1)
strSQL = " SELECT * FROM dbo_tblPrintCenter_SGI WHERE "
if len(strcriteriahull) > 0 then strSQL = strSQL & "dbo_tblPrintCenter_SGI.hull IN (""" & strCriteriaHull & """) AND "
if len(strcriteriaws) > 0 then strSQL = strSQL & "dbo_tblPrintCenter_SGI.WS IN (""" & strCriteriaWS & """)" AND "
if len(strcriterialeaddept) > 0 then strSQL = strSQL & "dbo_tblPrintCenter_SGI.LeadDept IN (""" & strCriteriaLeadDept & """)" AND "
if len(strcriteriaphase) > 0 then strSQL = strSQL & "dbo_tblPrintCenter_SGI.SSPhase IN (""" & strCriteriaPhase & """) AND "
strSQL = strSQL & "dbo_tblPrintCenter_SGI.CalcSS BETWEEN #" & txtCalcSSBegin & "# AND #" & txtCalcSSEnd & "#"
You have to encapsulate your IN string in quotes
this also assumes txtcalcssbegin and txtcalcssend are dates if they're text values you can go back to your ' marks
you can also use a debug.print strsql before you try to do anythign with it to see where your errors are by pasting the SQL code into a query window and seeing what error it throws