Hi,
I've created 3 forms (claims, arguments and evidence) based on their own specific query which have one-to-one relationships. Within each query I can edit data and add new record no problem there.
One of my forms (the claim form) allows me to add a new record and write within that record. However, the argument and evidence form do not allow me to type when I add a new record.
I am wondering whether it's the link I've made within the claim form to send you to the arguments related to that claim. And the same relationship is with the argument-evidence. The code I've used is below (from the link to form wizard using relationship):
In theory I guess this is a one-to-many relationship. So is this creating a new query?
If so is that what is stopping me from adding a new record and how would I get around it as I want it to be editable yet user-friendly?
If not what else could it be?
Thanks for any reply,
Leigh
I've created 3 forms (claims, arguments and evidence) based on their own specific query which have one-to-one relationships. Within each query I can edit data and add new record no problem there.
One of my forms (the claim form) allows me to add a new record and write within that record. However, the argument and evidence form do not allow me to type when I add a new record.
I am wondering whether it's the link I've made within the claim form to send you to the arguments related to that claim. And the same relationship is with the argument-evidence. The code I've used is below (from the link to form wizard using relationship):
Code:
Private Sub Command20_Click()
On Error GoTo Err_Command20_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "Evidence Form"
stLinkCriteria = "[Argument]=" & "'" & Me![Argument] & "'"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Exit_Command20_Click:
Exit Sub
Err_Command20_Click:
MsgBox Err.Description
Resume Exit_Command20_Click
End Sub
If so is that what is stopping me from adding a new record and how would I get around it as I want it to be editable yet user-friendly?
If not what else could it be?
Thanks for any reply,
Leigh
Comment