Loading Access Database Values into a Form

Hi guys. I have successfully connected to an Access database and have now started a new project which aims to load these Access database attributes into Text box fields. Unfortunately I'm having a bit of trouble.

I have a class called FormClass, of which the public FormClass constructor calls the getAttributesToForm function.

privatevoid getAttributesToForm(){

txtGroup.setText(oClass1Reference.getGroup());

txtManage.setText(oClass1Reference.getManage());

txtSurname.setText(oClass1Reference.getSurname());

}

The oClass1Reference refers to another class, which contains the getGroup etc setters and getters. I've declared a "private Class1 oClass1Reference as an instance. Is this the right way to load values?

[885 byte] By [spencer.bowmana] at [2007-11-27 5:22:09]
# 1

OK, so I've managed to load those values - turns out it works, so there must be something right about the methods I've used to achieve this.

I also have another question though - how do I browse through certain records? Say, I would add Previous and Next buttons to browse through values in the database. How would this be achieved?

spencer.bowmana at 2007-7-12 11:47:26 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...