Subroutine call with same name for string and field -
09-08-2008
, 08:26 AM
I want to create a text file with a name which is the same as a field name
and print to that file based on the contents of that field. I would like to
do this with a subroutine call.
there are fields in a table A, B, C etc. (all are boolean).
I want to write a text file
call subx("A")
Private subx(S as string)
Open "c:\XXX\" & S & ".TXT" For Output As #1 ' no problem with this
with....
while...
....
If !S = true then.....
....
wend
end with
Obviously this doesn't work; can I do something like this somehow?
Dick
Last edited by Admin : 04-17-2009 at 01:07 PM
.
|