By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,646 Members | 2,105 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,646 IT Pros & Developers. It's quick & easy.

Serialisation, Databases, and Word.

P: 1
I need to know how to Serialize things, that is, I have a textbox on a screen, I press a button, and I need to get the data in the textbox to get onto the Word document.
Additionally, how would I do this with an Access Database?

And, finally, when opening files in VB, they don't open properly, and it says 'this file is already open' when I try clicking the button used to open it.
I know all this sounds crude without code but it's something like...

Dim stra As String
stra = InputBox("Specify File:", "Alert")
If stra = "" Then
Print MsgBox("You haven't specified a file!", vbCritical)
Else
Open stra For Binary As #1
End If

And it says the file is already open, I have tried many different files, file types.

So, does anyone know about Serialisation and opening files :) Much appreciated
Oct 31 '06 #1
Share this Question
Share on Google+
1 Reply


Expert 5K+
P: 8,434
...
Open stra For Binary As #1
...
There are a lot of defaults being used here. It might help to be specific. For example, try including the "Shared" clause.
Nov 1 '06 #2

Post your reply

Sign in to post your reply or Sign up for a free account.