填充下一个3个星期日的组合框 [英] Populate combo box with next 3 SUNDAYS

查看:59
本文介绍了填充下一个3个星期日的组合框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好!


我有一个表单,当用户打开它时,表单上的日期组合框将填充一年中的每个月。但我不希望它这样做!我希望按时间顺序填充接下来的3个星期日,供用户选择。我如何更改代码?这是表格的OnLoad事件...

Hi everyone!

I have a form that when the user opens it, the Date combo box on the form is populated with every month of the year. But I don''t want it to do that! I want it to populate with the next 3 Sundays chronologically for the user to select from. How do I need to change my code? Here''s my OnLoad event for the form...

展开 | 选择 | Wrap | 行号

推荐答案

这样做的工作:

This does the job:

展开 | 选择 | Wrap | 行号



这样做的工作:

This does the job:

展开 | 选择 | Wrap | 行号


比如,像...


我有一年的组合框(2007年,2008年和2009年)。我还有一个月的组合框(1月,2月等)。如果用户选择2008然后选择7月,我希望星期日组合框仅根据所选年份填充该月的星期日。


谢谢!
Like, for example...

I have a year combo box (2007, 2008, and 2009). I also have a month combo box (January, February, etc.). If the user selects 2008 and then selects July, I want the Sunday combo box to populate with ONLY the Sundays of that month, according to that selected year.

Thanks!


这篇关于填充下一个3个星期日的组合框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆