Private Sub Get_MISPart(CustNum As String, CustPart As String)
blnPart = True
MsgBox "CustNum = " & CustNum
MsgBox "Custpart = " & CustPart
Set qdf = db.QueryDefs("qryRMACrossCustPart")
qdf.Parameters("Custno") = CustNum
qdf.Parameters("CustPart") = CustPart
Set rsPart = qdf.OpenRecordset 'ERRORS HERE
If Not (rsPart.BOF And rsPart.EOF) Then
rsPart.MoveFirst
strMISPart = rsPart.Fields("MedallionPart")
strMISRev = rsPart.Fields("fcpartrev")
strDesc = rsPart.Fields("fdescript")
strGroup = rsPart.Fields("fgroup")
strClass = rsPart.Fields("fprodcl")
dblCost = rsPart.Fields("fstdcost")
|