Did you connected the button to dataset. If you connected the button to dataset and then to corresponding link field in the database, it should work.
Did you connected the button to dataset. If you connected the button to dataset and then to corresponding link field in the database, it should work.