dbTalk Databases Forums  

Subroutine call with same name for string and field

comp.database.ms-access comp.database.ms-access


Discuss Subroutine call with same name for string and field in the comp.database.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
CLEAVE6@comcast.net
 
Posts: n/a

Default 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 .

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.