Discussion Locked

VBA Coding

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I have two buttons for record navigation (created with wizard) one for next record and one for previous record. Is there a way to add a default field selection for after the new record is selected (ie: Finish with current record click next record, and have first field on form selected for data entry.)?
Would this need to be done in the buttons code, or would it need to be added to the forms OnRedraw event (not sure if that is even the right event, maybe initialize?)

thanks again for yourtime everyone.

3 replies

by builder

In the oncurrent event use the setfocus method, check the Help file for details .
This is the sample code from the help file
The following example uses the SetFocus method to move the focus to an EmployeeID text box on an Employees form:

Forms!Employees!EmployeeID.SetFocus

Hope this helps

by vinay_gh_2000

I want to develop a central database for the university where in all the informationof the employees like payroll,service record, then connect to the library management record and finally keep all student records.

All This with the help of what database platform should I use. I have knowledge of tcp/ip do i need to know any thing more in networking also. I can connect computers using the ethernet card and windows 2k os.

thanks.

This discussion is closed to new replies.