S
Silvio
The code below works just fine when used with a command button (continuous
form) in order to open a second Form (Single Record) to see all the details
for the selected record only. However, instead of using a command button, I
am trying to use it LABEL (OnClick event) to produce an underlined web like
effect. However, the details form, always shows data from the first record in
my list (continuous form). I appear that command buttons and a label handle
the same codes differently. A bleak-point in the code shows that the MyID
always refers to the first record instead of the record ID of the record
being selected. How can I fix this?
Dim MyID As Integer
MyID = [ViolationID]
Forms![frmMenu]![SubItems2].Form.Filter = "[ViolationID] = " & MyID
Forms![frmMenu]![SubItems2].Form.FilterOn = True
Thank you,
Silvio
form) in order to open a second Form (Single Record) to see all the details
for the selected record only. However, instead of using a command button, I
am trying to use it LABEL (OnClick event) to produce an underlined web like
effect. However, the details form, always shows data from the first record in
my list (continuous form). I appear that command buttons and a label handle
the same codes differently. A bleak-point in the code shows that the MyID
always refers to the first record instead of the record ID of the record
being selected. How can I fix this?
Dim MyID As Integer
MyID = [ViolationID]
Forms![frmMenu]![SubItems2].Form.Filter = "[ViolationID] = " & MyID
Forms![frmMenu]![SubItems2].Form.FilterOn = True
Thank you,
Silvio