Hi John
Thanks for your response. Actually, I do want the 15 records to repeat but
only because it is a family and the address should be the same for each
family member. Each family member is to have their own seperate record, and
a second table is unnecessary. So ideally, what is needed is a button that
allows users to "add a family member", but only duplicates the last name,
address, and contact information. Is there anything I can do to resolve this?
I still suggest that you are lumping two valid entities - Households
and People - into one table, and that for many applications it would
be inappropriate to do so.
What you could do is code like the following:
Private Sub cmdNewFamilyMember_Click()
Dim strSQL As String
Dim Q As String = """" ' define the " character
strSQL = "INSERT INTO Contacts " _
& "(LastName, Address, ThisField, ThatField, ..., LastField) " _
& "VALUES ("
strSQL = strSQL & Q & Me!txtLastName & Q & ","
strSQL = strSQL & Q & Me!txtAddress & Q & ","
strSQL = strSQL & Q & Me!txtThisField & Q & ","
<etc>
strSQL = strSQL & Q & Me!txtLastField & Q & ");"
DoCmd.RunSQL strSQL
Me.Requery
DoCmd.GoToRecord acLast
End Sub
John W. Vinson[MVP]