Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
I have a main table (Tool_Log) which pulls the manufacturer name from another table (Manufacturer) using a drop-down list and I am pretty sure that this is the problem.
You Should never use drop down lists in a table!!!
To be honest, each of these tables contain only two fields – an auto number (PK) and the variable (which is pulled into the tool log).
and in your data table you are saving typeID, but your pull down shows the typeDescription. In my opinion and many others on this forum, your table should show the long typeID. However, on your form you would have a combo to enter the typeID from a pull down that shows the type description but enters the typeID.
What is shown is probably not what is stored. If you want to search a table for what is stored, you should search for what is actually stored, not what is shown in the table.Mayhem9 said:When I open the table, the actual text value (e.g. box wrench) is shown.
In regards to Duane's comments, is there any way to check what is stored in the table? My guess from what you have said Duane is that despite "Box Wrench" being displayed in the table, "9" (the PK) might actually be what is being stored.
Private Sub ManID_DblClick(Cancel As Integer)
On Error GoTo Err_ManID_DblClick
Dim lngManID As Long
If IsNull(Me![ManID]) Then
Me![ManID].Text = ""
Else
lngManID = Me![ManID]
Me![ManID] = Null
End If
DoCmd.OpenForm "Manufacturer", , , , , acDialog, "GotoNew"
Me![ManID].Requery
If lngManID <> 0 Then Me![ManID] = lngManID
Exit_ManID_DblClick:
Exit Sub
Err_ManID_DblClick:
MsgBox Err.Description
Resume Exit_ManID_DblClick
End Sub
Private Sub ManID_NotInList(NewData As String, Response As Integer)
MsgBox "Double-click this field to add an entry to the list."
Response = acDataErrContinue
End Sub