Dear All,
I should be very grateful if you would, please, help me tweak the ‘Edit’ code so that it will work correctly my Multiple Page Userform.
With some help, I have been able to put together a Multiple Page Userform (two userforms combined together) – one for Students and the other for Employees.
I am having problems getting the ‘Edit’ code to work for the ‘Employees’ userform. It works OK for the ‘Students’ userform.
1. When for e.g. a letter ‘e’ is typed into the ‘Filter Combo box’, the ‘Lookup Criteria’ box is automatically populated with the list of records containing the letter ‘e’.
2. And if e.g. the record of a student is clicked in the Lookup Criteria box, the ‘Student’ userform is populated with the full records of the student from the database. So also if the record of an employee is clicked, the ‘employee’ userform is equally populated.
3. However, when a user populates the student userform with a student’s record, and then amends the student’s record and clicks the ‘Edit’ button, the said student’s records are correctly updated.
4. The ‘Edit’ button is supposed to work for both userforms.
5. However, when a user populates the employee userform with the record of an employee and then amends the employee’s record and clicks the ‘Edit’ button, the ‘Edit’ code seems not to work correctly for updating such employee’s record.
Please, I need help to tweak the ‘Edit’ code for me so that it will work for both the ‘student userform’ and also the ‘employee userform’.
I have attached to this thread a sample file of the said Multiple Page Userform (with the codes). I am also appending below, the problematic ‘Edit’ code, and should be grateful for your kind help.
Please Login or Register to view this content.
Bookmarks