Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can you print a .txt file using VBA from within Access 2000?

Status
Not open for further replies.

PeterRichardson

Technical User
Oct 14, 2001
1
NZ
I am developing a barcoding system / DBMS which requires that small ASCII text files are sent to a Zebra label printer using the Windows GenericText driver, which I have set as the Windows Default on this particular machine. But,
opening the file for sequential access and then doing

printer.print "nameoftextfile.txt"

doesn't work - 'printer' gets highlighted, with the error message 'variable not defined'. I've a nasty feeling that the flavor of VBA associated with Access 2000 doesn't let you do this. Can anyone confirm or deny this? I'm a newbie with respect to VBA, btw

regards
Peter Richardson
(New Zealand)

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top