Jump to content

Need help with creating a function that returns dataset

- - - - -

  • Please log in to reply
1 reply to this topic

#1
elixir_pr

elixir_pr

    Newbie

  • Members
  • Pip
  • 3 posts
Hello friends,
I need help with following;
I have a function class in which I have created a function that connects to an Access database and runs a query and returns a dataset.
When I call this function on a form, how can I retrieve the information in dataset?
Currently I declare a dataset in that form and try to assign the function that returns dataset to that dataset variable, but I get following error:
System.NullReferenceException was unhandled
Message=Object reference not set to an instance of an object.

Please help me this problem with example code.
Thanks.

#2
lespauled

lespauled

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 232 posts
  • Programming Language:C, C++, C#, JavaScript, PL/SQL, Delphi/Object Pascal, Visual Basic .NET, Pascal, Transact-SQL, Bash
Post your code. It's impossible to find the error without it.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users