Hi Dw

I'm create an application that register a user and now because we accept even oldest people we have to include their years in a dropdownbox so I'm not sure if this is possible but I do think it is possible it just that I don't have a clue how to start it, I want on form load the form count(not just counting but add the years starting let say from 1930 to current year automatically and add starting from 1930 to date to a dropdownbox so that a user can be able to select his/her year of birth) because typing each year manually on the codes will produce a long codes and not to mention the time it will take to complete. Anyone has an idea on how I can achieve this or references will be appreciated.

Recommended Answers

You could also use a DateTimePicker or watch this video

Jump to Post

All 3 Replies

I've just managed to solve this problem by playing around with loop.

Dim y As Long

For y = 1930 To Year(Now)

Thanks ddanbe this was very helpful.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.