T
t.roff
hello, I am an inexperienced access user and I have been given some code to
add to:
i=1
Do while i<=12
G=Trim(i)
DetailsUpdateQuery = "Update Data Set Data.[G & "value] = (([G & "value]
-[G & "B])/[G & "A])*[G & "C]+[G & "D] WHERE (((Data.tagged) = False))"
DoCmd.RunSQL DetailsUpdateQuery
What I want to add is the condition that the update only occurs if
[G & "A] is not equal to [G & "C]
and [G & "B] is not equal to [G & "D]
[G & "value] is from the table called Data and the others ([G & "A,B,C,D])
are from a different table/form.
Thanks
add to:
i=1
Do while i<=12
G=Trim(i)
DetailsUpdateQuery = "Update Data Set Data.[G & "value] = (([G & "value]
-[G & "B])/[G & "A])*[G & "C]+[G & "D] WHERE (((Data.tagged) = False))"
DoCmd.RunSQL DetailsUpdateQuery
What I want to add is the condition that the update only occurs if
[G & "A] is not equal to [G & "C]
and [G & "B] is not equal to [G & "D]
[G & "value] is from the table called Data and the others ([G & "A,B,C,D])
are from a different table/form.
Thanks