R
RayV
We just upgraded(?) to Access 2007 and the first thing I have come
across is this:
I have a simple continuous form where the query is based on the value
in the control 'box_district'. 'box_district' is in the form header.
I have the detail of the form hidden until 'box_district' gets
updated. This code bombs at the asterisked line but it is because the
detail does not become visible as it should based on the third line.
Was something changed that would prevent 'me.detail.visible = true'
from working?
Private Sub box_district_AfterUpdate()
Me.Requery
Me.Detail.Visible = True
numtouse = DCount("fldSchYear7", "tblYear")
For i = 1 To numtouse
If Me.boxfldSchYear7.Value = Me.box_year.Value Then
For j = i To numtouse
i = numtouse + 1
If IsNull(Me.boxdol.Value) And IsNull(Me.boxper.Value)
Then
j = numtouse + 1
* Me!boxdol.SetFocus
Else
Me.Recordset.MoveNext
End If
Next j
Else
Me.Recordset.MoveNext
End If
Next i
End Sub
across is this:
I have a simple continuous form where the query is based on the value
in the control 'box_district'. 'box_district' is in the form header.
I have the detail of the form hidden until 'box_district' gets
updated. This code bombs at the asterisked line but it is because the
detail does not become visible as it should based on the third line.
Was something changed that would prevent 'me.detail.visible = true'
from working?
Private Sub box_district_AfterUpdate()
Me.Requery
Me.Detail.Visible = True
numtouse = DCount("fldSchYear7", "tblYear")
For i = 1 To numtouse
If Me.boxfldSchYear7.Value = Me.box_year.Value Then
For j = i To numtouse
i = numtouse + 1
If IsNull(Me.boxdol.Value) And IsNull(Me.boxper.Value)
Then
j = numtouse + 1
* Me!boxdol.SetFocus
Else
Me.Recordset.MoveNext
End If
Next j
Else
Me.Recordset.MoveNext
End If
Next i
End Sub