I have tblParts, tblRfqs, tblRfqDetails,tblQuotes. tblParts has a field txtStatus among others. The value of this field can be "Quoting", "Quoted" or "P.O. Issued"(taken from a value list not a lookup from another table). Table tblRfqDetails is a join table with PartID and RfqID as fields among others. I would like to have a command button on the Quoting form (1 to1 relationship with Rfqs) that would change the status of the Parts that are in the RfqDetails subform to "P.O. Issued". Then open a tblPO to a new record and fill in a field Quote with the current QuoteID.
I have an update query that I think will work.(criteria to find correct Rfq in fqDetails is [Forms]![frmQuotes]![Rfq] now how do I get the command button to run this code? I tried docmd.runquery theres no such command. Can I use the runSQL command? If so what would the code line look like. I've used an SQL statement before to limit choices in a combo box and I had to add double Quote marks around 1 of the where conditions.