This is a Visual Basic qustion but....

Talismanic

Registered User.
Local time
Today, 22:25
Joined
May 25, 2000
Messages
377
This is a Visual Basic question but I was hoping that there is somebody here who can help me with it.

I can open and write to a .dat file with VB by using this code. How can I bring it back into my text boxes so that I can edit the data?

Open "c:\record.dat" For Append As #1
Write #1, txtFname, txtLname, txtAddress, _
txtCity, txtState, txtZip
Close #1
 
Not having time to check this, but I would look at trying to open the .dat either on screen and linking or within a workspace, then using code to edit the data. Not much help but might point in right direction.

Simon
 
Hi Talismatic,

look up the help topic to the VBA-command "Open" (online-help when editing any code). There you find (German version):
Open Pfadname For Modus [Access Zugriff] [Sperre] As [#]Dateinummer [Len=Satzlänge]
...and all explanations.

Mic
 

Users who are viewing this thread

Back
Top Bottom