Okay, I give up!!!

B

Bill

Where's the counter operation/method to
Line Input #filenumber, varname ??
VBA gives a compiler error with a statement
like: "Line Output #filenumber, varname"

Thanks,
Bill
 
D

Dirk Goldgar

Bill said:
Where's the counter operation/method to
Line Input #filenumber, varname ??
VBA gives a compiler error with a statement
like: "Line Output #filenumber, varname"


Print #filenumber, varname
 
M

Minton M

Where's the counter operation/method to
Line Input #filenumber, varname ??
VBA gives a compiler error with a statement
like: "Line Output #filenumber, varname"

Thanks,
Bill

I use Print to write to files, eg...

i = FreeFile()
Open GetLogFileName For Append As i
Print #i, Now() & ": Something"
Close #i

Is this what you were looking for?
 
B

Bill

Just changed the "Line Output #2, varname" to
"Print #2, varname" and everything went as
desired.
Thanks,
Bill
 
B

boblarson

If you ever want double quotes encapsulating text field data you can also use

Write #1, WhateverHere

Write will include double quote text delimiter and Print excludes it.
--
Bob Larson
Access World Forums Super Moderator
Utter Access VIP
Tutorials at http://www.btabdevelopment.com
If my post was helpful to you, please rate the post.
__________________________________
 
D

Douglas J. Steele

You shouldn't hard-code the file number: you can never be sure what else is
running and is using the file handle you hard-coded.

Instead, use the FreeFile function to assign a file number for you, like
Minton did in his example.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top