我有两个 Windows 窗体。一个是Insert new member
,另一个是Edit member
。
插入新成员时,我可以选择Membership Date
. 我想将所选内容Membership Date
放入Edit member
表单中,其中我有一个datetimepicker
.
示例:我创建了一个新成员,其 IDA-15
和成员资格日期为15/05/2013
。当我想编辑这个成员时,我会Membership ID
在Edit member
表单中输入并运行程序。Membership Date
这会将所有详细信息加载到文本框和datetimepicker
.
我在使用datetimepicker
. 如何datetimepicker
从表格中的信息中选择日期并将其显示在MySQL
表格中?
代码:
CREATE TABLE [DBO].[DONORINFO] ( [MEMBERSHIP_NO] [VARCHAR](10) PRIMARY KEY NOT NULL,
[NAME_STATE] [VARCHAR](10) NULL, [FULL_NAME] [VARCHAR](100) NULL, [STREET_NO] [VARCHAR]
(50) NULL, [STREET] [VARCHAR] (50) NULL, [CITY] [VARCHAR] (50) NULL, [TEL] [VARCHAR]
(50) NULL, [EMAIL] [VARCHAR] (50) NULL, [DIOCESE] [VARCHAR] (50) NULL, [CUS_TYPE]
[VARCHAR] (50) NULL, [MEMBERSHIP_DATE] [DATE], );