B
babs
Private Sub cbojob_AfterUpdate()
Dim aSQL As String
aSQL = "SELECT Quoteid, job,Clientid,cost,overallmarkup,pit,
markup,taxrate,origin,destination,divisor,grossweight,taxex,cartagerate,fuelperrate"
& " FROM tblquotejoe " & "if quoteaccepted=yes" & "WHERE job= """ & Me.cbojob
& """ " & "ORDER BY QUOTEID"
Me.cbquoteid.RowSource = aSQL
End Sub
The above info was put together to filter a quoteid dropdown list for
quotes that went with the specific job that was selected in the job dropdown
list. I need to include only the quotes that go with the selects
job(multiple quotes for 1 job) and only include the quoets in the drop down
IF a field called quoteaccepted(a yes/no) field is YES. Sure my syntax is
wrong getting erroe in the FROM clause.
It worked fine before I included the IF for the quoteaccepted field.
Thanks,
Barb
Dim aSQL As String
aSQL = "SELECT Quoteid, job,Clientid,cost,overallmarkup,pit,
markup,taxrate,origin,destination,divisor,grossweight,taxex,cartagerate,fuelperrate"
& " FROM tblquotejoe " & "if quoteaccepted=yes" & "WHERE job= """ & Me.cbojob
& """ " & "ORDER BY QUOTEID"
Me.cbquoteid.RowSource = aSQL
End Sub
The above info was put together to filter a quoteid dropdown list for
quotes that went with the specific job that was selected in the job dropdown
list. I need to include only the quotes that go with the selects
job(multiple quotes for 1 job) and only include the quoets in the drop down
IF a field called quoteaccepted(a yes/no) field is YES. Sure my syntax is
wrong getting erroe in the FROM clause.
It worked fine before I included the IF for the quoteaccepted field.
Thanks,
Barb