Error when selecting view in OnLoad event

S

Stanley

Hi,

I would like to select a view, when opening a form, based on a value in one
of the fields. I set the code in the OnLoad event. But when i do this than i
get an error: "'XDocument.View' is null or not an object." when opening the
form.
Could the problem be that the form is not actually loaded yet. that the
XDocument.View object cannot be accessed?Is there a workaround for this?

Thnx

Stanley
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top