I have a Navigation Form with 3 tabs. Homes, Customer, Decor.
On the Navigation Form, I have an unbound field LOTNUMSELECT.
On the Subform within the each tab, it has a field called LOT_NUMBER.
Since the master / child relationship doesn't seem to be possible with Navigation forms, I'm looking for the subform to filter on load.
User inputs a lot # in LOTNUMSELECT, then clicks on a tab. When the tab becomes current, the specific lot # (record) is showing.
I've been doing this from a "control panel" form opening another form with the following code.
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "Decor"
If IsNull(LotNumberSelect.Value) = True Then
MsgBox "Please enter a lot number first."
Else
stLinkCriteria = "[Lot_Number]=" & "'" & Me![LotNumberSelect] & "'"
DoCmd.OpenForm stDocName, , , stLinkCriteria
End If
I just don't know how to edit this to work with the Navigation form and subforms.