|
-
Oct 24th, 2006, 04:22 PM
#1
Thread Starter
Junior Member
AddItem doesn't work in Access 2000
Hi,
I have a function (see below):
Private Sub PopulateCboYear()
Dim iYear As Integer
For iYear = 1900 To Year(Now())
cboYear.AddItem (iYear)
Next
End Sub
When I call PopulateCboYear, 4-digit years are populated to a combo box on the main form. The code works perfect until I tested it in Access 2000.
Is there anyway to modify the function so that it will work in Access 2000 or above?
Thanks a bunch!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|