Update Error

G

Guest

I am receiving an error message that reads: Operation Must Be an Updateable
Query.

I am trying to update the field MAX CHARE DAYS TOTAL. This field comes from
a previous query where this field itself was calculated by the query. I have
to update this field (in which all records will read the value 30 or 31), to
this:

IIf(DateDiff("d",[Start Date],[Arrival Date])>CLng(Rates![Free
Days]),DRDQ_02![Max Charge Days Total] Or IIf(DateDiff("d",[Start
Date],[Arrival Date])<CLng(Rates![Free Days]),(("Max Charge Days
Total")-CLng((Rates![Free Days])-(DateDiff("d",[Start Date],[Arrival
Date]))))))


I am trying to either place the original MAX CHARGE DATE in the MAX CHARGE
DATE FIELD, or I am trying to update it to the MAX CHARGE DATE minus free
days in another table, minus the difference between [Start Date],[Arrival
Date].


Can anyone help me?
 
J

John W. Vinson

I am receiving an error message that reads: Operation Must Be an Updateable
Query.

I am trying to update the field MAX CHARE DAYS TOTAL. This field comes from
a previous query where this field itself was calculated by the query. I have
to update this field (in which all records will read the value 30 or 31), to
this:

IIf(DateDiff("d",[Start Date],[Arrival Date])>CLng(Rates![Free
Days]),DRDQ_02![Max Charge Days Total] Or IIf(DateDiff("d",[Start
Date],[Arrival Date])<CLng(Rates![Free Days]),(("Max Charge Days
Total")-CLng((Rates![Free Days])-(DateDiff("d",[Start Date],[Arrival
Date]))))))


I am trying to either place the original MAX CHARGE DATE in the MAX CHARGE
DATE FIELD, or I am trying to update it to the MAX CHARGE DATE minus free
days in another table, minus the difference between [Start Date],[Arrival
Date].


Please post the complete SQL of the query. I suspect your expression is not
the source of the problem but rather something about the query.

John W. Vinson [MVP]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Update SQL 1
SQL Mix up? 3
Query Question 1
Query Question 1 1
Date Difference In Query 2
Query with IIF Expression Need Help 4
#ERROR 10
Query Date Range 1

Top