Null reference exception

I am trying to run a baq that I created from my customization, but i am getting a null reference exception that i can not figure out where it is coming from. Can someone please help.

My code:

I have these two lines on the form_load event:
adapter = newDynamicQueryAdapter(this.UD01Form);
adapter.BOConnect();

I am calling the method on a button click event

You need to add in the ID of the query.

QueryExecutionDataSet ds = new QueryExecutionDataSet("BAQID");

I get an error when I do that saying that the queyexcecutiondataset does not have a constructor that takes a perameter.

Check that epiTextBoxNumber is not null…?

Brett

I resolved this, I had my query id misspelled in my call to addapter.ExcecuteByID