dbTalk Databases Forums  

Subroutine call sith same name for string and field - Can do?

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


Discuss Subroutine call sith same name for string and field - Can do? in the comp.database.ms-access forum.



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

Default Subroutine call sith same name for string and field - Can do? - 09-07-2008 , 03:12 PM






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

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 - 2012, Jelsoft Enterprises Ltd.