Jessie
Dec 3rd, 1999, 05:48 AM
frustration setting in, atleast now I have no more file error path messages. The file that i am opening is a text file i donot want to create a control array to load textboxes maybelater . the file is formatted this way
eg filenumber
name
last name
address and so on
when i open the file none of the data gets loaded into the variables it opens the file then skips the line input?? here is my code and any help would be appreciated
Private Sub Command1_Click()
Dim intfreefile As Integer
strFileName = Dir("d:\home.txt")
strFileName = txtMember
intfreefile = FreeFile
Open strFileName For Input As intfreefile
Do While Not EOF(intfreefile)
Input #intfreefile, strMember, strName, strLastname, strAddress, strPhone
Loop
Close #intfreefile
Pass_Values
End Sub
------------------
IF YOUR GONNA BE A BEAR
BE A GRIZZLY
eg filenumber
name
last name
address and so on
when i open the file none of the data gets loaded into the variables it opens the file then skips the line input?? here is my code and any help would be appreciated
Private Sub Command1_Click()
Dim intfreefile As Integer
strFileName = Dir("d:\home.txt")
strFileName = txtMember
intfreefile = FreeFile
Open strFileName For Input As intfreefile
Do While Not EOF(intfreefile)
Input #intfreefile, strMember, strName, strLastname, strAddress, strPhone
Loop
Close #intfreefile
Pass_Values
End Sub
------------------
IF YOUR GONNA BE A BEAR
BE A GRIZZLY