A
acary
I need assistance in forcing the creation and entry of a new child record (2
fields: ID and Text field) upon the entry of a parent record. I'm working
with an MS Access form and subform. I have a statement that creates the child
record with record ID, but I can't get it to force entry of a value in the
text field:
Private Sub Form_AfterInsert()
Dim strSQL As String
strSQL = "INSERT INTO SubdivisionParcels(NewSubID) " & "Values(" &
Me!NewSubID & ")"
CurrentDb.Execute strSQL, dbFailOnError
End Sub
If I make the text field in the related child table a required field, the
system fails on "CurrentDB.Execute strSQL, dbFailOnError"
Any help is greatly appreciated! Thank you.
fields: ID and Text field) upon the entry of a parent record. I'm working
with an MS Access form and subform. I have a statement that creates the child
record with record ID, but I can't get it to force entry of a value in the
text field:
Private Sub Form_AfterInsert()
Dim strSQL As String
strSQL = "INSERT INTO SubdivisionParcels(NewSubID) " & "Values(" &
Me!NewSubID & ")"
CurrentDb.Execute strSQL, dbFailOnError
End Sub
If I make the text field in the related child table a required field, the
system fails on "CurrentDB.Execute strSQL, dbFailOnError"
Any help is greatly appreciated! Thank you.