I am trying to get the data in personal customer infomation.txt into a combo box, any ideas where i am going wrong?
Code:
Private Sub Cmbamend_Change()
Dim persdatafile As String
Dim persdata As String
persdatafile = App.Path & "\Personal Customer Infomation.txt"
Open persdatafile For Input As #1
Do While Not EOF(1)
Input #1, persdata
Loop
Close #1
Cmbamend = persdata
End Sub
Comment