> I want the query to return 1 row for each ORDER- which is unique for each
> clientid and ticket#(combined). The order can be based off of a quote (from
[quoted text clipped - 62 lines]
> Thanks,
> Barb
Barb,
Idea 1:
If only one quote is allowed for one ticket, can you merge the ticket and
quote tables, adding a field (change quoteid) to a field that selects either
"Quote" or "Ticket"?
Then you are back to two tables and should be able to make an updatable query.
Idea 2:
The form has the client info and the query with ticket info and quotes is in
a (linked)subForm.
Idea 3 (similar to Idea 2 but no subform):
1) In the form HEADER, add a combo box with the RowSource as:
"SELECT ClientId, clientnumber, Clientname, address, city, state FROM
ClientTable ORDER BY ClientName"
On the Format Tab, set:
Column Count = 6
Column Widths = 0;0;1;0;0;0
change to match the number of fields and the width of the name field.
Name the combo box cboClient.
Add *unbound* text boxes for the client info: clientnumber,
address,city,state,zip, etc.
txtclientnumber
txtaddress
txtcity
.
.
txtzip
2) The query for the Form should not have any fields from the client table
and look something like:
SELECT ClientId, [ticket#] , quoteid, [Service date], truck#, truckhours,
job, cost FROM TicketTable LEFT JOIN Quotetable ON TicketTable.quoteid =
Quotetable.Quotetable WHERE [ticket#] = Forms!formName.cboClient ORDER BY
[Service date]
(Note the WHERE clause!!)
3) In the client combo box in the header, add the following to the after
update event :
Private Sub cboClient_AfterUpdate()
Me.txtclientnumber = Me.cboclient.column(1)
Me.txtclientnane = Me.cboclient.column(2)
Me.txtaddress = Me.cboclient.column(3)
Me.txtcity = Me.cboclient.column(4)
Me.Requery
End Sub
NOTE: air code....
HTH

Signature
Steve S
--------------------------------
"Veni, Vidi, Velcro"
(I came; I saw; I stuck around.)