I have a series of 20 if then statements I wish to run per record set...My current code works fine for one record setl; however, I wish to have it run for all of my records...here is a sample of one of the if then statements (they are all the same, just diff. fields)
If P4Fresh.Value = 1 Or P4AcceptableAppearance.Value = 1 Or P4ProperTemperature.Value = 1 Then
P4TotalPointsDocked.Value = 4
Else
P4TotalPointsDocked.Value = 0
End If
I basically want the following to happen:
for i =1 to acLast
if then statements (all 20 of them)
next
I will place the code on a command button which will run the code and update everything. This is possible with update query's, but, I don't want 20 of them lying around...I want it all to happen at one button click...any ideas?
thanks!
If P4Fresh.Value = 1 Or P4AcceptableAppearance.Value = 1 Or P4ProperTemperature.Value = 1 Then
P4TotalPointsDocked.Value = 4
Else
P4TotalPointsDocked.Value = 0
End If
I basically want the following to happen:
for i =1 to acLast
if then statements (all 20 of them)
next
I will place the code on a command button which will run the code and update everything. This is possible with update query's, but, I don't want 20 of them lying around...I want it all to happen at one button click...any ideas?
thanks!