>Hi,
>
> i have about 5 combo boxes which has the values filled up according to certain criteria.
>
> the problem here is that the combo's are not an control array, and i want access the text property of each combo by butting them in a loop,
>but then i get an error
>
> Do While Not .EOF
> obect = "combo" + Trim(Str(i))
> s = obect + ".text"
> (object).Text = rs4!reason_cd
> i = i + 1
> .MoveNext
> Loop
>Any help regarding this is highly appreciated
>
>Regards
>shashi
Using VB5, there is no way to do that. If you use VB6, look at the CallByName function.
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com