I have created a form which displays data from three joined tables. the form displays the data based on one table using a sort of reference number (ex 1.01, 1.02, 2.01, etc.). The other two tables display the data from the rows that have that reference number attached to is (using a drop down menu which allows for multiple reference number other tables when inputting the data, i.e. one record can have 3 reference numbers of the main table attached to it).
When i search by reference number using my search method, the search returns the correct records for the reference numbers, however it only displays partial data from the other two tables. i have values like "Name?" and "####" returning instead of the actual data. However, if i do not start a search and just scroll through the records, all the data is returned without error.
I am unsure of what to do!
Here is my search code:
Private Sub SearchRecs_Click()
Dim Enter_FOM_Number As Doublet
On Error GoTo Err_cmdSearchRecs_Click
DoCmd.ApplyFilter , "[FOM List.FOM Section] = Enter_FOM_Number"
GoTo cmdSwitchButtons_Click
Exit_cmdSearchRecs_Click:
Exit Sub
Err_cmdSearchRecs_Click:
MsgBox Err.Description
Resume Exit_cmdSearchRecs_Click
cmdSwitchButtons_Click:
Reset.Visible = True
Reset.SetFocus
SearchRecs.Visible = False
End Sub
When i search by reference number using my search method, the search returns the correct records for the reference numbers, however it only displays partial data from the other two tables. i have values like "Name?" and "####" returning instead of the actual data. However, if i do not start a search and just scroll through the records, all the data is returned without error.
I am unsure of what to do!
Here is my search code:
Private Sub SearchRecs_Click()
Dim Enter_FOM_Number As Doublet
On Error GoTo Err_cmdSearchRecs_Click
DoCmd.ApplyFilter , "[FOM List.FOM Section] = Enter_FOM_Number"
GoTo cmdSwitchButtons_Click
Exit_cmdSearchRecs_Click:
Exit Sub
Err_cmdSearchRecs_Click:
MsgBox Err.Description
Resume Exit_cmdSearchRecs_Click
cmdSwitchButtons_Click:
Reset.Visible = True
Reset.SetFocus
SearchRecs.Visible = False
End Sub