Output file (replace another record)

S

Susanna

I want to write to the file, I want to replace 1 record with my new variable,
this is the code:

Dim ifileNum As Integer
Dim sFullPath As String
Dim vAdditionsorts As String


vAdditionsorts = "CREDITORID = " & 6

sFullPath = "C:\1.txt"

ifileNum = FreeFile

Open sFullPath For Append As #ifileNum
Print #ifileNum, vAdditionsorts
Close #ifileNum
 
P

Perry

You would need an INI file for that.

Which Office program (+ version) are you programming in ??
 
T

TC

You want "random access", not "append access". In the "Open" statement,
check out the "for Random" phrase.

HTH,
TC
 

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