Hello! I have a main form (Contacts) based on the main table (Master1). The form has many fields.
I have another table (Companies) which has a couple of fields. I am adding 2 of the Company fields into the main form via a SubForm (WebsiteSubF).
The SubForm is in between the fields on the main form. Between "Email" and "Industry".
Thus, I want to tab through the fields, as if it were one form.
The previous field in the main form is "Email".
The first field on the SubForm is "Company"
The second field on the SubForm is "Website"
The next field on the main form is "Industry".
I want to tab from the main form (Email) to the SubForm (Company), tab to the next SubForm field (Website) and then tab back to the main form into the "Industry" field.
My research has given me this codefor moving from Email to Company. The code is in the LostFocus Event Procedure of Email.Code:Me.Form!WebsiteSubF.Company.SetFocus
but it does not work. Access tells me that it cannot find the form. I have tried various combinations, to no avail. What do I need to change or add to make it work. I appreciate that there will be 1 line of code for each LostFocus Event Procedure in each of the fields. Many thanks - Leon