Hi Guys,
I have a table, let's say tblBooking with only three ID fields that are foreign keys from other tables and are required.
The form frmBooking which is bound to this table has three combo boxes. Each combo box substitutes informative text with correct ID. The form is placed in a frmNavigationForm therefore in NavigationSubform. Additionally, the frmBooking has a subform that is a table version of the form frmBooking but I substitute ID with information from other tables--I use query to fill the fields.
When the main navigation form starts, I have to click on button to go to frmBooking. Somehow, the form generates error when I try to click on any of the combo boxes. One, I have accepted errors I can continue to fill combo boxes and save current record.
I spotted the the following
The problem occurs when tblBookings is empty
I have a table, let's say tblBooking with only three ID fields that are foreign keys from other tables and are required.
The form frmBooking which is bound to this table has three combo boxes. Each combo box substitutes informative text with correct ID. The form is placed in a frmNavigationForm therefore in NavigationSubform. Additionally, the frmBooking has a subform that is a table version of the form frmBooking but I substitute ID with information from other tables--I use query to fill the fields.
When the main navigation form starts, I have to click on button to go to frmBooking. Somehow, the form generates error when I try to click on any of the combo boxes. One, I have accepted errors I can continue to fill combo boxes and save current record.
I spotted the the following
- the error occurs when the form gets focus from the navigation button when the tblBooking is empty
- If I manage to save current record and got to create a new record, there's no errors
- If the tblBookings has already records, the form starts with the first and also there's no errors
The problem occurs when tblBookings is empty