date field error - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

date field error

Last post 12-12-2011 09:47 AM by Jimmy. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 12-12-2011 04:39 AM

    date field error

    Hi Folks

    I am having difficulty in writing a date using code to a date field on a form.  I add an amount of days to a date , I then use the following line of code to write the new date value to the field:

    myForm.SelectSingleNode("/my:myFields/my:nextChangeDate", NamespaceManager).SetValue(newDate)

    However I keep getting  'Schema validation found non-data type errors.' error - both fields are in the date format though, So I do not quite understand.

    Any ideas?

    Regards

     

    Chas

     

     

  • 12-12-2011 09:47 AM In reply to

    Most likely the node has an xsi:nil attribute that needs to be removed.  Please search this forum for xsi:nil for more detail.

    Jimmy Rishe / Software Developer / Microsoft MVP
    Qdabra Software
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.