Hi all,
I have a single field on the form that I want to calculate in VB.NET and pass the value into the form.
Im using infopath compatilble with 2007 code.
the field on the form is weekdays and its defined as string.
My code in VB is the following:
Private Sub InternalStartup(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Startup
Dim weekdays As StringMainDataSource.CreateNavigator().SelectSingleNode("/myFields/my:weekdays")
weekdays = DatePart(
"ww", Today)End Sub
Wwhen I run it I get the following error:
Namespace Manager or XsltContext needed. This query has a prefix, variable, or user-defined function.
Any ideas?
thanks,