View Full Version : set a different value for a control if it is the first in a section


Happy YN
03-24-2002, 01:33 PM
I have a control which takes its value from the previous record by tagging it & setting the control to the tag. However I want the first control in any section to display 0 and not the last tagged value from the previous section so what code can I use which will say If this is the first record of this secion then value = 0 else value = tag etc
Thanx
Happy YN

Rich
03-24-2002, 02:43 PM
txtChange = 0
If (Me.Section(0).Tag <> "") Then
txtChange = (Me.Section(0).Tag)
End If

Happy YN
03-24-2002, 03:54 PM
thanx rich. I suppose you realise that I was referring to the tag which you gave me about a week or so ago to use the value of a previous record in the next one, sounds like it will go but out of curiosity what do you mean by section(0)?
thanx

Rich
03-24-2002, 10:23 PM
Section 0 is the detail section.

Happy YN
03-25-2002, 05:05 AM
Thanx!