• Update query (2003)

    • This topic has 4 replies, 3 voices, and was last updated 19 years ago.
    Author
    Topic
    #431582

    The following is a SQL representing an update query that returns the error “You must use an updatable query”. The query I am using to update the table holds 6 records, and when I view the new query it shows the 6 records to be updated. What’s up?

    UPDATE tblFeeCalculation INNER JOIN qryFeeCalculation1 ON (tblFeeCalculation.Plan = qryFeeCalculation1.Plan) AND (tblFeeCalculation.Month = qryFeeCalculation1.Month) AND (tblFeeCalculation.Cusip = qryFeeCalculation1.Cusip) SET tblFeeCalculation.FindersFee = [FindersFeeI];

    Viewing 0 reply threads
    Author
    Replies
    • #1010481

      Because you have qryFeeCalculation in there your query is not updateable. What I do is create a temporary table first and then join this table in place of the query to do the update. I then delete the temporary table.

      • #1010614

        Thank you. I really missed you guys while your site was down.

        I have noticed when I use the NZ function I cannot format Currency. Is there a way around this?

        • #1010615

          You can convert the result of Nz to currency using the CCur function, for example

          MyAmount: CCur(Nz([Amount],0))

          This should automatically be displayed as currency, and you can also select Currency in the Format property.

    Viewing 0 reply threads
    Reply To: Update query (2003)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: