twotinners
06-12-2006, 09:19 PM
This is Newbie Code and I'm in learning mode ...so be gentle :help :
If I understand it properly (and I probably don't), the following code is SUPOSE to populate 5 dropdown comboxes with the same data from the same seperate text file. Am I even close ?
Private Sub Document_New()
Dim FFile As Integer
FFile = FreeFile
Dim i As Integer
Dim Temp As String
OpenTextFile("c:\Down\Employee_Name_and_ID.txt", ForAppending, _
TristateFalse) FOR Random As #FFile
i = 1
Do Until EOF(FFile)
Get #FFile, i, Temp
ComboBox1.AddItem Temp
ComboBox2.AddItem Temp
ComboBox3.AddItem Temp
ComboBox4.AddItem Temp
ComboBox5.AddItem Temp
i = i + 1
Loop
Close #FFile
End Sub
Am I getting Warm or am I still STONE COLD?
Boy I'll be glad when this nightmare Word Form is DONE
Dave :bug:
If I understand it properly (and I probably don't), the following code is SUPOSE to populate 5 dropdown comboxes with the same data from the same seperate text file. Am I even close ?
Private Sub Document_New()
Dim FFile As Integer
FFile = FreeFile
Dim i As Integer
Dim Temp As String
OpenTextFile("c:\Down\Employee_Name_and_ID.txt", ForAppending, _
TristateFalse) FOR Random As #FFile
i = 1
Do Until EOF(FFile)
Get #FFile, i, Temp
ComboBox1.AddItem Temp
ComboBox2.AddItem Temp
ComboBox3.AddItem Temp
ComboBox4.AddItem Temp
ComboBox5.AddItem Temp
i = i + 1
Loop
Close #FFile
End Sub
Am I getting Warm or am I still STONE COLD?
Boy I'll be glad when this nightmare Word Form is DONE
Dave :bug: