Recent content by exceii

  1. E

    Warning: Operation must be an updatable query

    I'm pretty much lost with your last post. The query I used for the max values is: SELECT CommissionGroups.SurveyorID, DMax("CommissionGroupID","CommissionGroups") AS CommissionGroupIDMax FROM CommissionGroups GROUP BY CommissionGroups.SurveyorID; Its basically the same as the first query but...
  2. E

    Warning: Operation must be an updatable query

    Yep. Actually I haven't even added the join for the max query yet. I've been procrastinating lol.
  3. E

    Warning: Operation must be an updatable query

    I still get the same error using DMax(). And I can't use DMax/Max() on the fly because the value will always be incrementing when a new CommissionGroupID is created (CommissionGroupID acts in the same way as an invoice but for paying commissions)and I need the particular value at that...
  4. E

    Warning: Operation must be an updatable query

    That would be true for something like "Totals" but I'm using max() as more of a utility. That value of the max() function gets assigned to a field that is used for a join, so it is necessary.
  5. E

    Warning: Operation must be an updatable query

    As it turns out, the Jet 4 engine does not let an update query run if the source data is the product of an aggregated function e.g. max(). That workaround is to create a temp table to store the data, join the table in the update query, then drop the table after the query has run. Also fyi, Jet...
  6. E

    Warning: Operation must be an updatable query

    Hey, Can anyone see the problem with this update query. This query is supposed to update Orders.CommissionID to a calculated maximum value from another table/query if the value of Orders.CommissionID is still its default value of 1. UPDATE CommissionGroupIDGroupMax INNER JOIN Orders ON...
  7. E

    Invoice ID expression

    I ended up running an append query to the Invoices table to create a new InvoiceID before running the UpdateOrdersInvoiceID query. I imagine VBA is a lot more powerful and flexible so hopefully I'll be able to learn some of it enough to be able to to use it in the future. Thanks for your help.
  8. E

    Invoice ID expression

    Hey Penguino, Another problem has inevitably arose. I cannot seem to be able to create and save a new record using a macro embedded on a button control in a form I am using to display the records to be assigned to an invoice. Basically I need to create a new Invoices record to be able to...
  9. E

    Invoice ID expression

    I just tried your sugestion and it worked! Thank you.
  10. E

    Invoice ID expression

    I just tried an update using the value of DMax on a standard number field to update a number filed and Access still threw out a type conversion error. Why god, why?
  11. E

    Invoice ID expression

    Thanks for the advice. You are right, when I change the updade field to a hard coded value it works. Unfortunatly when I use the Dmax function it throws a conversion error. I tried to run it though the CInt fuction but it still threw out the same error. I think this is because I'm getting a...
  12. E

    Invoice ID expression

    Thanks for the link. Its a little complex for my needs though.
  13. E

    Invoice ID expression

    Hey, I'm having a problem running an UPDATE query using an expression as the value to update to. I have 2 tables called "Invoices" and "Orders". Both "Invoices" and "Orders" have a field called InvoiceID with the primary key and foreign key respectively. I have a control "Create invoice"...
  14. E

    Lookup filed question?

    I've also heard that lookups should be avoided. Non-the-less I would still like to understand them.
  15. E

    Lookup filed question?

    Thanks for the reply. I am actually working with the "Opportunities" table, not a form. You are correct though, the width for the first column is set to 0 but that only affects the information in the combo box. Once I make a selection from the combo box the information displayed in the field is...
Back
Top Bottom