Suzanne,
Thanks for jumping in on this one. I am sure Charles was starting to think I
was developing into a pest. I'm sorry, but I do have an urgent need for
this type function and I am quickly running out of time.
Yes, I checked the ADO reference. I have now found out that when I
downloaded the sample Word document and Access database zipfile from
http://www.mousetrax.com/DownloadsFormsFive.html, for some reason, it opens
in the design mode, without ever telling me to enable the
View/Toolbars/Control Toolbox to allow me to close the design mode.
I found detailed instructions for this sample at
http://www.computorcompanion.com/LPMArticle.asp?ID=22 In there, it details
how to lock the form but my version of Word (Office 2003) apparently
doesn't have the same prompts. In Section 4 referring to testing the form,
she said to choose Tools/Protect Document/Forms .... well, when I selected
Tools/Protect Document I was presented with three different options and none
of them was Forms. In choice #2, Editing Restrictions, "Allow only this type
of editing in the document" I found a dropdown box with one choice being
"Filling in the forms." Then, after you make those selections, you need to
click on Begin Protection. I guess someone more knowledgable would have
been able to figure it out, but it took me a couple of days. I think the
directions might be a little clearer but I don't want to complain about
someone offering me free code. <g> I realize that it might have been written
for a different version of Word.
So, I am now on to more complicated problems. I can Protect the form and get
out of the Design mode and click on the two Command Buttons ... and it still
doesn't work. I have placed both the form and the database in the
C:\ComputorCompanion directory but the database doesn't seem to be attached
to the form. In the underlying VBA code for both CommandButtons, I see a
section that is supposed to test for a connection to the database and tell
me "The connection to this database is working!" or "You were unable to
connect to the assigned database!" This is not working and it is not
commented out.
When I click the Command button for "Update New" I expect that the data
would be written to the database and the hopefully the form would be cleared
so I can enter another set of data.
So, Suzanne, if you or anyone else is still with me after this long,
detailed message, I would still appreciate any help determining what the
problem is. It should not be this hard as I do have some Access experience
but I think something else is in play. I just have not figured it out yet.
Help.
TIA,
Tom