R
Ray Todd Jr
How do I pull the defendantID from the tadefendant table and place that value
into the tadefendantsnotes table via sql? See the sql code I have below and
the basic layout of the tables involved.
What I am trying to do is when I print a letter, to have a note put into the
notes table that a letter was printed and the date printed.
The two tables:
taDefendants taDEFENDANTSNotes
DefendantID (PK) Autonumber DefNotesID (PK) Autonumber
PropertyID -long DefendantID (FK) long
BatchID -long ...
....
strSql = "Insert into taDefendantsNotes (DefendantID, DefNote) " _
& "values (" & lngDefendantID & ", '" & strDefNote & "')"
db.Execute strSql, dbFailOnError
Any help/suggestions would be appreciated.
Thanks,
into the tadefendantsnotes table via sql? See the sql code I have below and
the basic layout of the tables involved.
What I am trying to do is when I print a letter, to have a note put into the
notes table that a letter was printed and the date printed.
The two tables:
taDefendants taDEFENDANTSNotes
DefendantID (PK) Autonumber DefNotesID (PK) Autonumber
PropertyID -long DefendantID (FK) long
BatchID -long ...
....
strSql = "Insert into taDefendantsNotes (DefendantID, DefNote) " _
& "values (" & lngDefendantID & ", '" & strDefNote & "')"
db.Execute strSql, dbFailOnError
Any help/suggestions would be appreciated.
Thanks,