I have a tabcontrol with 6 pages. On one page I wish to put a dtpicker control. I can't easily bind it because the field in the db may be null and dtpicker can't handle null values so I check if the field is null and then assign the current date to the dtpicker field.
If IsNull(Me![Start Date]) Then
Me!dtProgramStartDate = Date
Else
Me!dtProgramStartDate = Me![Start Date]
End If
This code works fine if the dtpicker field (dtprogramstartdate) is on the form proper and not in the tab control. If it's in the tab control I get
An error occurred in a call to the windows date and time picker control.
Any thoughts
jigf
If IsNull(Me![Start Date]) Then
Me!dtProgramStartDate = Date
Else
Me!dtProgramStartDate = Me![Start Date]
End If
This code works fine if the dtpicker field (dtprogramstartdate) is on the form proper and not in the tab control. If it's in the tab control I get
An error occurred in a call to the windows date and time picker control.
Any thoughts
jigf