Noob Question, please help

R

rocha1573

I want to create a form with basically 2 boxes and 4 navigation buttons,
First, Last, Next and Previous. Now, I am trying to do it like this:

For the Previous Button for example, on click event:

If bindingcontext(dataset,"tablename").position > 0 then
bindingcontext(dataset,"tablename").position = _
(bindingcontext(dataset,"tablename").position - 1)

For the next button I changed to +1, for the last button to
..position.maxvalue and the fist button .position.minvalue.

When I open the form, textbox remains with the first position of the table,
and the buttons do not work. I created a datagrid just to see that the data
was loading into the form ok, which it is. I also created a textbox to
query the table and show results on datagrid and works great. Not sure what
am I doing wrong in the bindingcontext code, please any help is appreciated.
 
R

rocha1573

Disregard the question, lack of coffee frustated me. I already got it, not
sure why I got into the if sentence, damn.
 

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