Hi AWSmitty,
Here's why I ask. I'm still on the "let's automate the dispatch office"
project. I think you're familiar with what I'm trying to do. I am at a
point where I need to take input data the user has entered on a subform and
enter this into a table, a new, empty table I should add.
You should not need to enter your data into "a new, empty table". Doing so
suggests that you are working with a non-normalized database design, a.k.a.
an "Access spreadsheet". You should spend some time gaining an understanding
of database design and normalization before attempting to build something in
Access (or any RDBMS software for that matter). Here are some links to get
you started. Don't underestimate the importance of gaining a good
understanding of database design. Brew a good pot of tea or coffee and enjoy
reading!
http://www.accessmvp.com/JConrad/accessjunkie/resources.html#DatabaseDesign101
(See the first download titled "Understanding Normalization")
<Begin Quote (from page 23 of document)>
"The most important point for you to remember is that you will always
re-introduce data integrity problems when you de-Normalize your structures!
This means that it becomes incumbent upon you or the user to deal with this
issue. Either way, it imposes an unnecessary burden upon the both of you.
De-Normalization is one issue that you'll have to weigh and decide for
yourself whether the perceived benefits are worth the extra effort it will
take to maintain the database properly."
<End Quote>
Be sure to read the first two papers, by Michael Hernandez, author of
"Database Design for Mere Mortals".
I’m having a heck
of a time. At first I was using, you guessed it, DAO code. I kept getting
errors about object mis-match. I couldn’t figure it out; I tried ADO and
low and behold. I can at least get it to....
If you had the ADO reference with a higher priority, versus the DAO
reference, then I'm willing to bet that you encountered run-time error 13:
Type Mismatch, because you were getting an ADO recordset by default, but
attempting to use DAO code with this recordset. Here is an article that
explains why it is so very important to fully qualify these objects:
ADO and DAO Library References in Access Databases
http://www.accessmvp.com/TWickerath/articles/adodao.htm
Like David Fenton states in a different posting in this thread, spend your
time learning to use Access with the point and click GUI (Graphical User
Interface) first, before concerning yourself with the complexities of VBA
code, be it DAO, ADO or the Microsoft flavor of the month.
You will be best served to study database design, along with learning what
characters and reserved words to avoid using, when assigning names to
anything in Access. Here are some links to help you learn for laying a proper
foundation:
Naming Conventions
Special characters that you must avoid when you work with Access databases
http://support.microsoft.com/?id=826763
Commonly used naming conventions
http://www.mvps.org/access/general/gen0012.htm
http://www.xoc.net/standards/default.asp →
http://www.xoc.net/standards/rvbanc.asp#Access
Using a Naming Convention
http://msdn2.microsoft.com/en-us/library/aa164529(office.10).aspx
Reserved Words
Problem names and reserved words in Access
http://allenbrowne.com/AppIssueBadWord.html
Good Luck, and I hope you enjoy your venture in using Access!
Tom Wickerath
Microsoft Access MVP
http://www.accessmvp.com/TWickerath/
__________________________________________