Hello,
I am trying to create a loop in an MS Access application that will read in a list of iSeries system names from a file in my Access database, and then submit a command to each of the listed systems.
I have the code working for submitting the commands to one iSeries system at a time, the problem I am encountering is when I try to us a loop to submit the command to a list of systems.
Here is what I have for the command loop, my problem that I have hit, which is probably very rudamentary, is that I can't seem to specify a file within my database correctly.
I keep receiving an error stating "Run-time error '53': File not found
The file definitley exist, and the spelling is correct. Is there some syntax I am missing to specifiy the file in my current database?
*note - iseries is the name of the field which I am trying to read in.
Any help is greatly appreciated, and I apologize if this question is very elementary in nature.
Thank you.
I am trying to create a loop in an MS Access application that will read in a list of iSeries system names from a file in my Access database, and then submit a command to each of the listed systems.
I have the code working for submitting the commands to one iSeries system at a time, the problem I am encountering is when I try to us a loop to submit the command to a list of systems.
Here is what I have for the command loop, my problem that I have hit, which is probably very rudamentary, is that I can't seem to specify a file within my database correctly.
I keep receiving an error stating "Run-time error '53': File not found
The file definitley exist, and the spelling is correct. Is there some syntax I am missing to specifiy the file in my current database?
*note - iseries is the name of the field which I am trying to read in.
Code:
If system_name = "ALL" Then
Open "myfile" For Input As #1
Do While Not EOF(1)
system_name = iseries
YOUR400.Define system_name
Set Command.system = YOUR400
' Enter USERID and PWD so the users will not be prompted
Command.system.USERID = USERID
Command.system.Password = Password
CU = command_run
Command.Run CU
Loop
Close #1
MsgBox ("Command '" & command_run & "' has been issued to all systems by '" & USERID & "' ")
End If
Thank you.
Comment