(Ebook) Microsoft Access VBA Programming for the Absolute Beginner by Michael Vine ISBN 9781592007233, 1592007236 download
(Ebook) Microsoft Access VBA Programming for the Absolute Beginner by Michael Vine ISBN 9781592007233, 1592007236 download
https://ebooknice.com/product/microsoft-access-vba-programming-
for-the-absolute-beginner-4114398
https://ebooknice.com/product/microsoft-access-vba-programming-for-
the-absolute-beginner-1082680
https://ebooknice.com/product/microsoft-excel-vba-programming-for-the-
absolute-beginner-1076772
https://ebooknice.com/product/c-programming-for-the-absolute-
beginner-1101712
https://ebooknice.com/product/visual-basic-programming-for-the-
absolute-beginner-984280
(Ebook) Microsoft Excel VBA Programming for the Absolute Beginner,
Second Edition by Duane Birnbaum ISBN 9781592007295, 1592007295
https://ebooknice.com/product/microsoft-excel-vba-programming-for-the-
absolute-beginner-second-edition-1274770
https://ebooknice.com/product/c-programming-for-the-absolute-
beginner-33554976
https://ebooknice.com/product/microsoft-windows-
powershell-2-0-programming-for-the-absolute-beginner-4104588
https://ebooknice.com/product/microsoft-c-programming-for-the-
absolute-beginner-2010738
https://ebooknice.com/product/microsoft-visual-basic-net-programming-
for-the-absolute-beginner-1539006
Microsoft Access
®
VBA Programming
for the Absolute
Beginner
Second Edition
MICHAEL VINE
© 2005 by Thomson Course Technology PTR. All rights reserved. No Publisher and GM of Course PTR:
part of this book may be reproduced or transmitted in any form or by Stacy L. Hiquet
any means, electronic or mechanical, including photocopying, record-
Associate Director of Marketing:
ing, or by any information storage or retrieval system without written
Sarah O’Donnell
permission from Thomson Course Technology PTR, except for the
inclusion of brief quotations in a review. Marketing
g Manager:
Heather Hurley
The Premier Press and Thomson Course Technology PTR logo and related
trade dress are trademarks of Thomson Course Technology PTR and Manager of Editorial Services:
may not be used without written permission. Heather Talbot
Microsoft and Access 2003 are registered trademarks of Microsoft Cor- Acquisitions Editor:
poration in the United States and/or other countries. Mitzi Koontz
All other trademarks are the property of their respective owners. Senior Editor:
Mark Garvey
Important: Thomson Course Technology PTR cannot provide software
support. Please contact the appropriate software manufacturer’s tech- Marketing Coordinator:
nical support line or Web site for assistance. Jordan Casey
Thomson Course Technology PTR and the author have attempted Project Editor:
throughout this book to distinguish proprietary trademarks from Scott Harris/Argosy Publishing
descriptive terms by following the capitalization style used by the man-
ufacturer. Technical Reviewer:
Eric Olson
Information contained in this book has been obtained by Thomson
Course Technology PTR from sources believed to be reliable. However, PTR Editorial Services Coordinator:
because of the possibility of human or mechanical error by our Elizabeth Furbish
sources, Thomson Course Technology PTR, or others, the Publisher Copy Editor:
does not guarantee the accuracy, adequacy, or completeness of any Tonya Cupp
information and is not responsible for any errors or omissions or the
results obtained from use of such information. Readers should be par- Interior Layout Tech:
ticularly aware of the fact that the Internet is an ever-changing entity. Shawn Morningstar
Some facts may have changed since this book went to press.
Cover Designer:
Educational facilities, companies, and organizations interested in mul- Mike Tanamachi
tiple copies or licensing of this book should contact the publisher for
CD-ROM Producer:
quantity discount information. Training manuals, CD-ROMs, and por-
Keith Davenport
tions of this book are also available individually or can be tailored for
specific needs. Indexer:
Nancy Fulton
ISBN: 1-59200-723-6
Library of Congress Catalog Card Number: 2004114910 Proofreader:
Printed in the United States of America Jan Cocker
05 06 07 08 09 BH 10 9 8 7 6 5 4 3 2 1
W
riting any book is not easy, especially a technical programming book. It
takes many great, patient, and talented people to write, edit, design,
market, finance, and produce a book and accompanying CD-ROM. Without
the publishing assistance of Mitzi Koontz, Scott Harris, and Tonya Cupp, it would
be impossible for me to share with you my knowledge of programming in such
a professional and fun manner.
I’d like to thank a good friend, Eric Olson, who ensured the technical accuracy
of this book. Thanks Eric! Now that the book is done, let’s go fishing!
Beyond the technical and business workings of creating a book, the Author must
be fed, loved, and encouraged. Without the support of my beautiful wife Sheila,
this would never have happened. Thanks baby: I love you!
About the Author
M
ichael Vine has taught computer programming, Web design, and database
classes at Indiana University/Purdue University in Indianapolis, IN, and
at MTI College of Business and Technology in Sacramento, CA. Michael
has over 13 years of experience in the information technology profession. He
currently works full time at a Fortune 100 company as an IT Project Manager
overseeing the development of enterprise data warehouses.
Contents
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xiii
StrComp . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125
Right . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126
Left . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127
Mid . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 128
InStr . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 128
Date and Time Functions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 129
Date . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130
Day . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130
WeekDay . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130
Month . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131
Year. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131
Time . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131
Second . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 132
Minute . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 132
Hour . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133
Now . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133
Conversion Functions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133
Val. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 134
Str . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 134
Chr . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 134
Asc . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 135
Formatting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 135
Formatting Strings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137
Formatting Numbers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137
Formatting Date and Time . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 138
Chapter Program: Secret Message . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 140
Chapter Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 144
Grouping. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 227
Joins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 228
INSERT INTO Statement. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 231
UPDATE Statement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 232
DELETE Statement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 232
Data Definition Language . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 233
Creating Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 233
Altering Tables. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 234
DROP Statement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 235
Chapter Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 235
Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .359
Introduction
I
ntroduced in the early 1990s, Microsoft Access has become one of the
most powerful and popular applications in the Microsoft Office suite of
applications. Part of Microsoft Office Professional Edition 2003,
Microsoft Access 2003 allows database developers and programmers to build
dynamic and easily portable databases. Access comes with many easy-to-use features
such as graphical forms, report designers, and SQL query builders, as well as a sub-
set of the Visual Basic language known as VBA for building data-driven applications.
Microsoft Access VBA Programming for the Absolute Beginner, Second Edition, is not a
guide on how to use Access and its many wizards. There are already many books
that do that! Instead, Microsoft Access VBA Programming for the Absolute Beginner
concentrates on VBA programming concepts including variables, conditions,
loops, data structures, procedures, file I/O, and object-oriented programming
with special topics including Microsoft Jet SQL, database programming with
ADO, Microsoft Office objects, and data access pages.
Using Premier Press’s Absolute Beginner series guidelines’ professional insight, clear
explanations, examples, and pictures, you learn to program in Access VBA. Each
chapter contains programming challenges, a chapter review, and a complete program
that uses chapter-based concepts to construct a fun and easily built application.
To work through this book in its entirety, you should have access to a computer
with Microsoft Access installed. The programs in this book were written in
Microsoft Office 2003, specifically Access 2003. Those readers using older ver-
sions of Microsoft Access, such as Access 2002 or Access 2000, will find that many
of the VBA programming concepts still apply.
Each chapter begins with a brief introduction to chapter-based concepts. Once inside the
chapter, you’ll look at a series of programming concepts and small programs that illustrate
each of the major points of the chapter. Finally, you’ll put these concepts together to build a
complete program at the end of the chapter. All of the programs are short enough that you
can type them in yourself (which is a great way to look closely at code), but they are also avail-
able on the accompanying CD-ROM. Located at the end of every chapter is a summary that
outlines key concepts learned. Use the summaries to refresh your memory on the important
concepts. In addition to summaries, each chapter contains programming challenges that will
help you learn and cement chapter-based concepts. Throughout the book, I’ll throw in a few
other tidbits, notably the following:
TRI
CK These are good ideas that experienced programmers like to pass on.
TRA
P There are a few areas where it’s easy to make a mistake. I’ll point them out to
you as we go.
HIN
T Pay special attention to these areas for clarification or emphasis on chapter
concepts.
Access
Essentials
I (Relational Database Management System) that has become one of the most
powerful programs in the Microsoft Office suite of applications.
Part of the Microsoft Office Professional Edition 2003, Access 2003 provides both
beginning and professional database developers alike a cost effective way to lever-
age key database functionality with an easy-to-use graphical interface.
In this chapter I get you started using the Access 2003 application by showing you
Access essentials such as files, databases, tables, fields, relationships, forms, con-
trols, and queries. You learn these Access essentials by building a simple database
to manage students and homework assignments.
• Database backups
• XML support
• Improved Microsoft Office online help
• Collaborate development efforts with friends and colleagues using Microsoft
SharePoint Services
• Improved macro and function security
• Context-based help for SQL view
• Manage SQL Server databases with Access projects
• Updated Microsoft Office 2003 Object Model
• New Visual Basic objects, properties, and methods
System Requirements
System requirements for installing and using Microsoft Access 2003 are straightforward, as
depicted in Table 1.1.
T A B L E 1.1 A C C E S S 20 03 S Y S T E M R E Q U I R E M E N T S
Component Requirements
Processor Pentium 233 MHz or faster processor
Memory 128 MB or RAM or greater
Hard Disk 180 MB minimum, an additional 200 MB for optional files
Drive CD-ROM or DVD
Display 600×800 or higher resolution monitor
Operating System Windows 2000 with sp3, Windows XP or later
Once installed, you can harness many of the great features of Access 2003 on your local PC
by building databases with tables and queries, and creating user interfaces with forms,
reports, and Data Access Pages.
If you wish to deploy Data Access Pages over the Internet, you also need access to a web
server such as IIS (Internet Information Services). For more information please visit
Microsoft’s IIS web site at http://www.microsoft.com/WindowsServer2003/iis/default.mspx.
Chapter 1 • Access Essentials 3
Microsoft SharePoint Services is also recommended for professional Access developers col-
laborating with other colleagues on development activities such as versioning, check-in/
check-out processes, and approval workflows. For more information, see Microsoft’s Share-
Point Services web site at http://www.microsoft.com/windowsserver2003/technologies/
sharepoint/default.mspx.
Databases allow you to ask questions of your data. For example, you could group your stu-
dents by their grade point average, find out which students missed fewer than 3 school days,
and which students have failed to turn in 10 or more homework assignments and have a
grade point average less than 2.0.
Access implements a relational database to link information such as homework results to
one or more students. Looking at Figure 1.1, you can easily see how Access links a student to
one or more homework assignments using tables and keys.
TRI
CK A relational database stores data in separate tables by subject matter and pro-
vides a system or user-defined link (key) between the tables to produce useful
information through the relationship.
Figure 1.1
Relational data in
Microsoft Access.
The two sets of tables in Figure 1.1 are relational in that the HomeWork_Results table main-
tains a student key (in other words, a relationship) back to the Students table.
Many of the beforementioned questions require a fair amount of analysis and design. Good
analysis prior to creating a database is essential to creating an effective database that
requires minor maintenance, yet is extendable and robust.
The remainder of this chapter assists you in understanding how many of these questions
can be answered from an analysis, design, and construction point of view. Specifically, I
show you how to create a simple database that can manage and report students and their
homework scores.
For now, simply launch the Access program icon by choosing Start, Programs, or from any
other shortcut you may have created during or after the Microsoft Office installation.
Once opened, you should see an Access window similar to the one depicted in Figure 1.2.
New file
window pane
Step 2: Create a
blank database
Figure 1.2
Creating a new
Access file.
6 Access VBA Programming for the Absolute Beginner, Second Edition
If you do not see the New File pane shown in Figure 1.2, simply click the New File icon on
the Access toolbar or select it from the File, New menu item. Once you see the New File win-
dow pane, click the Blank Database link depicted in Figure 1.2. The Blank Database link
opens another window, allowing you to select where your database is initially created and
saved. Finish creating your database by simply typing a filename for your database and click
Create as seen in Figure 1.3.
Figure 1.3
Creating a new
Access database.
You should now see an Access window similar to that in Figure 1.4.
TRI
CK Microsoft Access databases are always stored in binary files with the file extension
.mdb. These files store relevant information about your Access database, including
tables, fields, reports queries, and much more.
You can also open an existing Access file by clicking the Open icon on the Access toolbar or
by choosing File, Open (both depicted in Figure 1.5).
If you’re looking for sample databases to learn, work, or play with, Microsoft has been provid-
ing the Northwind database for many Access versions now. You can find the Microsoft sample
Northwind database by clicking the Help, Sample Databases menu item seen in Figure 1.5.
Chapter 1 • Access Essentials 7
Figure 1.4
New Access
Database window.
HIN
T You may have to install the sample database feature, which Access prompts you
to do if the Northwind database is not already installed. I recommend installing
the sample Northwind database if you have not already done so, as I use its
tables and records periodically during this book.
Open an
existing database
Figure 1.5
Opening an
existing Access
database.
8 Access VBA Programming for the Absolute Beginner, Second Edition
TRI
CK When opening an existing Access database, you may get an unsafe expression or
macro security warning such as the one seen in Figure 1.6.
Figure 1.6
Access macro
security warning.
In short, you get this security message because your macro security is set to
Medium and Access cannot verify this is a trusted source (digitally signed, for
instance) or that someone has not tampered with your database since you last
opened it. You can, however, disable this warning by changing the macro security
level to Low, which is accessed from the Security menu item in the Tools, Macro
menu.
The later the date at which this sentence was added to the final
clause of the ‘de alodis,’ the stronger becomes the evidence of what
ancient Salic custom on this matter was.
Assuredly the object of these words is not to
introduce a new principle. They obviously describe The final clause
protects the
ancient Salic custom in order to protect it. And how family holding.
could a division per capita amongst great-
grandsons take place unless, as in the Cymric gwely, the holding of
terra Salica had during the whole period of the three generations
been kept in some sense together as a family holding?
It would be unwise to press analogies between Cymric and Salic
tribal custom too far, but I have before pointed out that a system of
wergelds, to which paternal and maternal relatives each individually
contributed their share, seems to imply an original solidarity of
kindred, which must, wherever it was fully in force, have been
connected with a corresponding solidarity in the occupation of land,
together with its complement, an individual ownership of cattle. And
in the light of the ‘de alodis’ it does not seem unlikely that it may
have been so under ancient Salic custom.
If the foregoing considerations be accepted, may
we not recognise in the term terra Salica, as at first Distinction
between land
used, a meaning analogous to that which Professor under Salic and
Vinogradoff has recently so brilliantly given to the land under Roman
Anglo-Saxon term ‘folc-land’?[117] In both cases law.
surely it was natural that there should be a term distinguishing land
still held under the rules of ancient tribal custom from land held
under the Romanised rules of individual landownership.
It is not necessary to do more than allude here to the various
clauses of the Lex Salica from which the existence of individual
holdings is clearly to be inferred. If, from this single mention of terra
Salica and its ultimate division among great-grandsons per capita,
the continued existence of tribal or family holdings held still under
Salic law may be legitimately inferred, it is at least equally clear that
the Romanus possessor who lived and held his possession as res
propria under Roman law also existed. And if so the two classes of
holders of land must often have been neighbours. The vicini, ‘qui in
villa consistunt,’ of the title ‘de migrantibus’ (XLV.) may some of them
have been of the one class and some of them of the other. The
objection of a single person living under Salic law to the interloper
would have a new meaning and become very natural if the conflict
between the two systems were involved. And when we have
reminded ourselves of these facts the title De eum qui se de
parentilla tollere vult, to which allusion has already been made,
which enabled the tribesman, by the somewhat theatrical action of
breaking the four sticks of alder over his head, to cut himself loose
from his parentilla, takes its proper place as evidence of the
temptation which must have beset the young tribesman in close
contact with Gallo-Roman neighbours to free himself from what had
come to be regarded as a bondage, and to take an independent
position as an individual under the new order of things which was
fast undermining the old.
If the son die after 14 years of age and leave no heir, his ‘argluyd’
is to possess all his da and to be in place of a son to him and his
house becomes a dead-house. (Ven. Code, i. p. 203.)[121]
‘If the murderer shall be poor, so that he cannot pay at once, then
let him pay per tres decessiones filiorum.’
Has it really come to this, that since the Edict of Childeric II. came
into force the parentes are released, and the descendants of the
murderer, for three generations, are to be in slavery till the wergeld
is paid? It may be so, for the penalty in default of payment of the
wergeld probably included his own slavery, which involved with it
that of his descendants.
The ancient tribal tradition that within the family
there could be no feud or wergeld, but exile only, The fisc gradually
takes the place of
was still apparently in force. In Title LXIX. there is the kindred.
a clause which enacts that if any one shall slay one
next in kin (‘proximus sanguinis’) he shall suffer exile and all his
goods shall go to the fisc. This exile of the slayer of a near kinsman
and forfeiture of his goods to the fisc seems to be almost the only
distinct important survival of tribal feeling, apparently neither
wergeld nor the death of the slayer being admitted. But in this case
the fisc was, as usual, the gainer. Parricide under any system of
criminal law would be a capital crime. The pertinacity with which the
custom that, being a crime within the kindred, there could be no
feud and therefore no wergeld, was adhered to in the midst of
manifold changes in circumstances, feeling, and law, is very
remarkable.
There is not much else in the Ripuarian laws throwing light upon
tribal customs as regards the solidarity of the kindred. But there is a
good deal of interesting information upon the important subject of
the treatment of strangers in blood.
We have seen that in the Lex Salica the
definition of the ingenuus with a wergeld of 200 Distinction
between persons
solidi was the Francus or barbarus living under living under Salic
Salic law. The ‘barbarus’ who lived under Salic law law and those
living under
was no longer a stranger; he had in fact become a Roman law who
Frank. As we should say, he had been naturalised. were treated as
Hence there was no inconsistency in the apparent strangers in
blood.
occasional indiscriminate use of the words ‘Francus’
and ‘ingenuus.’ They meant the same thing. But there is nothing to
show that the ordinary Gallo-Roman was included under the term
‘barbarus who lived under Salic law.’ On the other hand, we find him
living under the Roman law.
In considering the method of dealing with people of so mixed a
population as that of the Ripuarian district it is very important to
recognise how, under tribal custom, every man continued to live
under the law under which he was born, until by some legal process
his nationality, so to speak, was admitted to be changed. The Cymric
example has shown us how strictly the tribal blood and admission
from outside into the tribe were guarded. In such a mixed
population as that of the Ripuarian district, the strictness may have
been somewhat relaxed, and the formalities of admission less
difficult. But there is evidence enough, I think (with great deference
to M. Fustel de Coulanges’ doubts on the subject), to show that to
some extent at any rate social distinctions were still founded upon
‘difference of blood.’ At all events it is worth while to examine the
additional evidence afforded by some clauses in the Ripuarian laws.
In Tit. XXXI. it is stated that Franks,
Burgundians, Alamanni, and others, of whatever Strangers of allied
tribes have
nation, living in the Ripuarian country, are to be wergelds
judged and dealt with, if guilty, according to the according to the
law of the place of their birth, and not by the law of their birth,
but if they cannot
Ripuarian law, and it is significantly added that find compurgators
(living away from their kinsmen as they often must must go to the
be) if they cannot find compurgators they must ordeal.
And in full accord with this statement is the following clause in the
‘Capitulare legi Ripuariæ additum’ of a.d. 803.
So that more of tribal custom still prevails in his case than at first
appears. Only in the third generation are full rights of inheritance
secured to his successors.
If now we turn to the libertus under Roman law,
Tit. LXI. states that if any one shall make his Wergeld of the
libertus under
servus into a libertus and Roman citizen, if he shall Roman law 100
commit a crime he shall be judged by Roman law, solidi.
and if he be killed the payment shall be 100 solidi:
but ‘if he shall die without children he shall have no heir but our fisc.’
Thus, as regards inheritance, the Frankish denarialis and the
Roman libertus seem to be treated alike, notwithstanding the
difference of wergeld.
Turning to another matter, the Ripuarian laws, being of later date
than the Lex Salica, made provision for the wergelds of the clergy.
Tit. XXXVI. provided that the clergy should be
compounded for according to their birth, whether Wergelds of the
clergy, and of
of the class of servi, or men of the king or of the their ‘men.’
Church, or liti, or ingenui. If ingenui, they were to
be compounded for with 200 solidi. Then the wergelds of the higher
clergy are stated as follows:—
All that need be remarked regarding this title is, first its close
resemblance to the clause ‘de alodis’ in the Lex Salica and the
confirmation given by the phrase ‘hereditas aviatica’ to the family
character of the ‘alod,’ and secondly that it seems to belong to the
time when female succession was favoured.
Whether the ‘hereditas aviatica’ included the whole alod or only
the land of the alod, on failure of male heirs, females were now to
succeed.
There remains only to be noticed the interesting
addition to Tit. XXXVI. which enacts that if any one The traditional
value of animals
ought to pay wergeld he should reckon, inter alia: in payment of
— wergelds. The
wergeld of 200
solidi = 100 oxen.
The ox, horned, seeing, and sound, for 2 solidi
The cow, horned, seeing, and sound, for 1
[3 or] solidus
The horse, seeing and sound, for 6 solidi
The mare, seeing and sound, for 3 ”
Thus our consideration of these laws ends with the fact that,
before the disturbance in the currency made by Charlemagne, the
wergeld of the Frankish freeman of 200 gold solidi or heavy gold
mina was still, in the Ripuarian district at all events, a normal
wergeld of 100 oxen.
V. THE ALAMANNIC AND BAVARIAN LAWS.
These laws have an interest of their own, but only those points
come directly within the range of this inquiry which are likely to
throw light upon the interpretation of the Anglo-Saxon laws.
Beginning at once with the wergelds, there are two distinct
statements.
According to the ‘Pactus,’ which is assigned to
the sixth or seventh century, and which is The wergelds of
the early
considered to represent customs of the Alamanni Alamannic
before they were conquered by the Franks,[124] the ‘Pactus,’ and of
the later ‘Lex
wergelds were as follows:— Hlotharii.’
If any freeman (‘liber’) kills a freeman, let him compound for him
twice 80 solidi to his sons. If he does not leave sons nor has heirs let
him pay 200 solidi.
Women of theirs, moreover, always in double.
The medius Alamannus, if he shall be killed, let 200 solidi be paid
to the parentes.
It is not clear that there has been any change in the wergelds
since the date of the ‘Pactus.’
The wergeld of the medius Alamannus, 200
solidi, is the same as before. That of the liber, 160 The wergeld of
160 solidi accords
solidi, seems to be the same as that of the baro de with the
mino flidis in the ‘Pactus.’ It is also the wergeld of statement in the
the Alamannus according to the clause mentioning Ripuarian law.
strangers in the Ripuarian law. The use of the term
‘medius Alamannus’ seems to imply that there should be a primus
Alamannus as in the ‘Pactus.’ But what these two classes of
Alamanni with higher wergelds than that of the liber were does not
appear.
This later statement of the wergelds seems also to contain a
provision which can, I think, only be explained by tribal custom. It
occurs again in clause XLVI., which enacts that the same payment
has to be paid to the parentes of a person sold out of the country
beyond recall as if he had been killed. This rule is the same in the
Salic and Ripuarian codes. But in this law a distinction is made
between the case of a slain man leaving an heir, and the case of his
leaving no heir.
If he cannot recall him let him pay for him with a Wergeld of 200
wergeld to the parentes. That is twice 80 solidi if solidi if no heir of
the person slain.
he leave an heir. But if he does not leave an heir let
him compound with 200 solidi.
If any man wilfully kills his father, uncle, brother, or maternal uncle
(avunculus), or his brother’s son, or the son of his uncle or maternal
uncle, or his mother, or his sister, let him know that he has acted
against God, and not fulfilled brotherhood according to the
command of God, and heavily sinned against God. And before all his
parentes, let his goods be confiscated, and let nothing of his pertain
any more to his heirs. Moreover, let him do penance according to the
Canons. (Tit. XL.)
Once more in these laws the parricide (the fisc having taken his
property) goes free, but for the penance required by the Canons of
the Church.
As regards the wergelds of the clergy in the
Alamannic law the Church seems to claim triple Wergelds of the
clergy.
penalties. The wergelds of the clergy are as
follows, according to the Lex Hlotharii (XI. to XVII.):—
These clauses show that the solidi in which the wergelds were
paid were gold solidi of three tremisses.
In the Ripuarian laws the ox was equated with 2 gold solidi, i.e. 6
tremisses, so that we learned from the equation that the wergeld of
the Ripuarian liber, 200 solidi, was really a wergeld of 100 oxen. But
the above equations show that under Alamannic law the wergeld of
the liber was not so.
In the Alamannic laws the best ox was valued only at five
tremisses instead of six, so that the wergeld of 200 solidi of the
medius Alamannus was really a wergeld of 120 oxen; and the 160
solidi of the wergeld of the baro de mino flidis of the ‘Pactus,’ or
simple ‘liber’ of the Lex Hlotharii, was a wergeld of 96 oxen or 120
Alamannic ‘sweetest cows.’
Any one who has seen the magnificent fawn-coloured oxen by
which waggons are still drawn in the streets of St. Gall will
appreciate what the ‘summus bovus’ of the Alamannic region may
have been. Why it should have been worth in gold less than the
oxen of other lands does not appear.
CHAPTER VII.
TRIBAL CUSTOMS OF THE TRIBES
CONQUERED BY CHARLEMAGNE.
When we reflect that the Franks living under the Lex Salica must
have thus sunk into a small minority, it becomes obvious that wider
views must of necessity have entered into the minds of Charlemagne
and his advisers, not only as regards land, but also as regards the
currency.
The currency of the Lex Salica, with its solidi of
40 denarii, was, as has been said, after all a local The currency of
the Lex Salica
one. And outside the old Frankish boundary, in the only a local one.
Wisigothic region, as well as probably in Italy, the
Roman currency or local modifications of it apparently more or less
prevailed. Ecclesiastics, as we have seen, even Alcuin himself, still
used the terms of Roman currency in writing on monetary matters to
their friends outside the Empire.
To them the denarius was still the Roman
drachma of 72 wheat-grains of silver, commonly The Roman
drachma or
called the argenteus, in contrast to the gold solidus argenteus of 72
or aureus. w.g. the silver
denarius of the
Gregory of Tours, when he has occasion to Empire.
mention monetary payments, speaks of aurei,
trientes, and argentei. In one story he speaks of solidi, trientes, and
argentei.[131]
Further, in a supplement to the laws of the Wisigoths[132] is a
statement under the name of Wamba Rex (a.d. 672-680), which
apparently represents the monetary system in vogue south of the
Frankish boundary. It states that the pound of gold equalled 72 gold
solidi, so that the gold solidus was not the Merovingian solidus but
that of Constantine. It then states that the ‘dragma’ of gold = ‘xii
argentei.’ The argenteus being the silver drachma, the ratio of gold
to silver was 1:12.
To Isidore of Seville, from his Spanish standpoint, the silver
drachma was still the denarius.[133]
Thus the solidus was the typical gold unit or aureus, and the
drachma was the silver denarius or argenteus.
It is remarkable that at a ratio of 1:10 twelve
Wisigothic or Roman argentei or drachmas of silver Twelve drachmas
of silver = at 1:10
equalled exactly in wheat-grains the Merovingian the Merovingian
gold solidus current on the Frankish side of the gold solidus.
Garonne or the Loire.[134]
It would seem, then, probable that traditionally and ‘according to
ancient custom’ outside the Frankish kingdom the Merovingian gold
solidus had been equated with twelve silver argentei or denarii of
this reckoning, whilst within Frankish limits 40 of the silver tremisses
and now of the pence of the nova moneta were reckoned as equal
to the gold solidus of the Lex Salica.
But even to the Frank the 40 denarii of the Lex Salica may have
become antiquated except for wergelds and other payments under
its provisions.
The practice apparently had already grown up of
reckoning 12 of the silver tremisses as a solidus of The silver solidus
of 12 silver
silver, twenty of which went to the pound of 240 tremisses already
pence, without, however, any pretence being made in use in
that this solidus of twelve silver pence was to be accounts, as 1/20
of the pound of
reckoned as equal to the gold solidus in making silver of 240
payments. pence.
Our website is not just a platform for buying books, but a bridge
connecting readers to the timeless values of culture and wisdom. With
an elegant, user-friendly interface and an intelligent search system,
we are committed to providing a quick and convenient shopping
experience. Additionally, our special promotions and home delivery
services ensure that you save time and fully enjoy the joy of reading.
ebooknice.com