Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

dtpicker and tabcontrol

Status
Not open for further replies.

jigf

Programmer
Jan 13, 2004
2
0
0
CA
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top