D
dan dungan
Hi FormsCoders:
The code below returns error 490 on this line:
"K:\Customer Service\Quote\Backup\Data\2008\myFile & .txt"
The file opens if I step through the code using the actual file name
"K:\Customer Service\Quote\Backup\Data\2008\30-027.txt"
In a field FILENAM_, the database holds the file name minus the
extension. In my form, I hold the data in the textbox, txtFilename
I haven't been able to get the proper sytax.
Any suggestions?
Thanks,
Dan
Private Sub Command60_Click()
On Error GoTo Err_Command60_Click
Dim myFile As String
txtFilename.SetFocus
myFile = txtFilename.Text
Application.FollowHyperlink _
"K:\Customer Service\Quote\Backup\Data\2008\myFile & .txt"
Exit_Command60_Click:
Exit Sub
Err_Command60_Click:
MsgBox Err.Description
Resume Exit_Command60_Click
End Sub
Exit_Command60_Click:
Exit Sub
Err_Command60_Click:
MsgBox Err.Description
Resume Exit_Command60_Click
End Sub
The code below returns error 490 on this line:
"K:\Customer Service\Quote\Backup\Data\2008\myFile & .txt"
The file opens if I step through the code using the actual file name
"K:\Customer Service\Quote\Backup\Data\2008\30-027.txt"
In a field FILENAM_, the database holds the file name minus the
extension. In my form, I hold the data in the textbox, txtFilename
I haven't been able to get the proper sytax.
Any suggestions?
Thanks,
Dan
Private Sub Command60_Click()
On Error GoTo Err_Command60_Click
Dim myFile As String
txtFilename.SetFocus
myFile = txtFilename.Text
Application.FollowHyperlink _
"K:\Customer Service\Quote\Backup\Data\2008\myFile & .txt"
Exit_Command60_Click:
Exit Sub
Err_Command60_Click:
MsgBox Err.Description
Resume Exit_Command60_Click
End Sub
Exit_Command60_Click:
Exit Sub
Err_Command60_Click:
MsgBox Err.Description
Resume Exit_Command60_Click
End Sub