
Originally Posted by
June7
Thanks. I've figured it out. created a table and created a relationship between two columns.
But i have another question. I'm trying to create a clear button, to clear the master form and the sub form.
Currently this is my code that will clear the fields in the master form, would it be possible to add more code to clear the sub form as well?
Code:
Private Sub Clear_Button_Click() Dim ctl As Control
For Each ctl In Me.Controls
If ctl.ControlType = acTextBox Then
ctl.Value = Null
End If
Next ctl
End Sub
Please let me know if need to create a new thread for this.