D
Dave
Good day;
I am using Access 2003 with Windows XP. I placed a listbox on a form. I
want the listbox populated with values 1 thru 60. So when the form loads it
runs this piece of code.
With lstGetMailTimer
.RowSourceType = "Value List"
sSrceStr = vbNullString
For iLoop = 1 To 60
sSrceStr = sSrceStr & CStr(iLoop) & ";"
Next ' iLoop
.RowSource = sSrceStr
End With
The listbox does populate correctly, but what happens is I am getting a
second listbox directly above my listbox with no values in the list. When I
drop the form into design mode, an error occurs causing Access to crash. I
deleted the listbox and created a new listbox using a different name - same
result. Any ideas what may be causing this? Thank you.
I am using Access 2003 with Windows XP. I placed a listbox on a form. I
want the listbox populated with values 1 thru 60. So when the form loads it
runs this piece of code.
With lstGetMailTimer
.RowSourceType = "Value List"
sSrceStr = vbNullString
For iLoop = 1 To 60
sSrceStr = sSrceStr & CStr(iLoop) & ";"
Next ' iLoop
.RowSource = sSrceStr
End With
The listbox does populate correctly, but what happens is I am getting a
second listbox directly above my listbox with no values in the list. When I
drop the form into design mode, an error occurs causing Access to crash. I
deleted the listbox and created a new listbox using a different name - same
result. Any ideas what may be causing this? Thank you.