A family of Microsoft relational database management systems designed for ease of use.
You only need the one main form for this, whose RecordSource returns all countries. In this include an unbound combo box, named cboGoToCountry say, in which you select the country you wish to navigate to. The combo box would be set up along the following lines:
RowSource: SELECT CountryID, Country FROM Countries ORDER BY Country;
BoundColumn: 1
ColumnCount: 2
ColumnWidths: 0cm
If your units of measurement are imperial rather than metric Access will automatically convert the unit of the last one to inches. The important thing is that the dimension is zero to hide the first column.
In the combo box's AfterUpdate event procedure put code like the following:
Const MESSAGETEXT = "No matching record"
Dim ctrl As Control
With Me.RecordsetClone
.FindFirst "ContactID = " & Nz(Me.cboGoToCountry ,0)
If Not .NoMatch Then
' go to record by synchronizing bookmarks
Me.Bookmark = .Bookmark
Else
MsgBox MESSAGETEXT, vbInformation, "Warning"
End If
End With
The inventories for the current country can be shown in three subforms in the form, each linked to the parent form by setting the LinkMasterFields and LinkChildFields properties of the subform control to CountryID.
To save space you can put each inventory subform on the last three pages of a tab control within the parent form. The primary data in the parent form's recordset which identifies the country can be shown in bound controls above the tab control, so that it is always visible, while the subsidiary data in the main form's recordset can be shown in controls on the first page of the tab control.
To keep the unbound combo box in sync with the form if the user navigates to another country other than via the combo box, put the following code in the parent form's Current event procedure:
Me.cboGoToCountry = Me.CountryID
You'll find an example in FindRecord.zip in my public databases folder at:
https://onedrive.live.com/?cid=44CC60D7FEA42912&id=44CC60D7FEA42912!169
Note that if you are using an earlier version of Access you might find that the colour of some form objects such as buttons shows incorrectly and you will need to amend the form design accordingly.
If you have difficulty opening the link, copy the link (NB, not the link location) and paste it into your browser's address bar.
This little demo file includes an option for opening a 'Tabbed Form' set up in the way described above.