Results 1 to 5 of 5
  1. #1
    3 Star Lounger
    Join Date
    Mar 2006
    Location
    Pittsburgh, Pennsylvania, USA
    Posts
    289
    Thanks
    0
    Thanked 1 Time in 1 Post

    Update query (2003)

    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];
    Thanks
    chuck

  2. #2
    3 Star Lounger
    Join Date
    Dec 2001
    Location
    Schenectady, New York, USA
    Posts
    273
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Update query (2003)

    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.
    Don
    <img src=/S/flags/USA.gif border=0 alt=USA width=30 height=18> <img src=/S/flags/NewYork.gif border=0 alt=NewYork width=30 height=18> "Life on Earth is expensive, but at least it includes a free trip around the Sun."

  3. #3
    3 Star Lounger
    Join Date
    Mar 2006
    Location
    Pittsburgh, Pennsylvania, USA
    Posts
    289
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Update query (2003)

    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?
    Thanks
    chuck

  4. #4
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Update query (2003)

    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.

  5. #5
    3 Star Lounger
    Join Date
    Mar 2006
    Location
    Pittsburgh, Pennsylvania, USA
    Posts
    289
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Update query (2003)

    Works like a charm...as always. Thanks.
    Thanks
    chuck

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •