in the following code i try to obtain the value in the first column of the selected row it works in different code elsewhere in the form but for some reason it returns the same value in this case please help i have spent the last 10 hours trying different methods to fix this.
Code:
Private Sub CallSearchResults_Click()
DoCmd.OpenForm "Call Info"
Forms![Call Info]![fnameTXT].Value = Forms![Customer Support Department]![fnametb].Value
Forms![Call Info]![lnameTXT].Value = Forms![Customer Support Department]![lnametb].Value
Forms![Call Info]![phonetxt].Value = Forms![Customer Support Department]![CallSearchResults].Column(3)
Forms![Call Info]![DateCallTXT].Value = Forms![Customer Support Department]![CallSearchResults].Column(1)
Forms![Call Info]![TimeCallTXT].Value = Forms![Customer Support Department]![CallSearchResults].Column(2)
Dim ID As Integer
ID = [CallSearchResults].[Column](0)
Forms![Call Info]![DepartmentTXT].Value = DLookup("[Department]", "[Call Search]", "ID = [ID]")
Forms![Call Info]![Remarkstxt].Value = DLookup("[Remarks]", "[Call Search]", "ID = [ID]")
End Sub