D
Diego via AccessMonster.com
Probably i have done something of wrong
When i run the update query it opened a little form that ask VBA_Date.
I do nothing, only click ok on the little form and the query works fine and
updated the table.
What is my error?
Let me know
thanks
Diego
When i run the update query it opened a little form that ask VBA_Date.
I do nothing, only click ok on the little form and the query works fine and
updated the table.
What is my error?
Let me know
thanks
Diego
Diego:
If you want to update the Descrizione and Categoria field’s values you’d use
an update query along these lines:
UPDATE YourTable
SET Descrizione =
DLookup("Descrizione","Anni_Descrizione", "Anni = " &
DateDiff("yyyy", Data_Nascita, Date()) -
IIf(Format( Data_Nascita, "mmdd")Categoria =Format(VBA.Date, "mmdd"), 1, 0)),
DLookup("Categoria","Anni_Descrizione","Anni = " &
DateDiff("yyyy", Data_Nascita, Date()) -
IIf(Format( Data_Nascita, "mmdd")Format(VBA.Date, "mmdd"), 1, 0));
To return the values in computed columns use the same expressions.
Ken Sheridan
Stafford, England
[quoted text clipped - 21 lines]Hi Ken
since your suggestion works fine i have a new question