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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DTPicker null value

Status
Not open for further replies.

qazz

Programmer
Oct 6, 2002
13
PH
I used DTPicker in a form and its connected to a table employee with field name BirthDate with a datatype smalldatetime, but when i edit the record having a "null value", the DTPicker have encounter error " Binding Collection Error.... Field not updatable".

Anybody can help me.

Thanks,
Qazz
 
try:

Code:
If IsNull(RS("DateField").Value) Then
  DTPicker1.Value=Date
Else
  DTPicker1.Value=RS("DateField").Value
end if
I hope this helps.

Ron Repp

If gray hair is a sign of wisdom, then I'm a genius.
 
Ron Repp,

Thanks but the data is connected in ADODC. They have error if you navigate the DTPicker if the fieldname value is null.

Arnold
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top