sanders720
Programmer
Command is a button on an open form, which reads current combo box selections. The query has been tested and runs fine. The data does not make it on the report under SubDesctiption for the control name. The control source is unbound.
Private Sub command4_click()
Dim rst As Recordset
Dim sql As String
sql = "SELECT Description from tblSubAssyListing WHERE JobNo = " & Me.Combo8.Value & " AND SubAssy = '" & Me.Combo22.Value & "' "
Set rst = CurrentDb.OpenRecordset(sql)
OpenReport "rptManufactured Parts List", True
Application.Reports![rptManufactured Parts List].SubDescription.Value = rst("Description"
rst.Close
Set rst = Nothing
End Sub
Thx,
Private Sub command4_click()
Dim rst As Recordset
Dim sql As String
sql = "SELECT Description from tblSubAssyListing WHERE JobNo = " & Me.Combo8.Value & " AND SubAssy = '" & Me.Combo22.Value & "' "
Set rst = CurrentDb.OpenRecordset(sql)
OpenReport "rptManufactured Parts List", True
Application.Reports![rptManufactured Parts List].SubDescription.Value = rst("Description"
rst.Close
Set rst = Nothing
End Sub
Thx,