My textbox Text24 remains blank. My update query is linked to my table by a Where statement that is based on text 24. However text 24 remains blank. I have tried making ID my PK and I have changed it to not being a PK and it still remains blnk.
Private Sub CommandUpdatePatient_Click()
DoCmd.OpenForm "FormUpdatePatient"
[Forms]![FormUpdatePatient]![Text24] = DLookup("[ID]", "DISCHARGE_DELAY", "[ID] = [Forms]![FormListBoxSearch]![Combo65]")
End Sub