> I have a form that contains record number information and alittle bit of data
> based on this record number. Each "record number" is linked to a couples
[quoted text clipped - 7 lines]
> I was able to do this in the past and for some reason or another its not
> working. Any suggestions?
Mike,
You want to use a link criteria in your onclick event code when
opening the "Couple_Index form.
Something like:
Private Sub cmdButton_Click()
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "Couple_Index"
stLinkCriteria = "[field on Couple_Index that corresponds to
protocal number]=" & Me![name of field on current form containing
Protocal number]
DoCmd.OpenForm stDocName, , , stLinkCriteria
end sub
Look out for word wrap
Hope that helps
Mike - 11 Jan 2008 19:32 GMT
Thanks for the response Rick! However this didnt seem to help. I think this
can be accomplished by using the command button wizard as well but it still
doesnt seem to update on field in the Couples_Index form/table.
Within the Protocol_Index table/form, I have a field called ProtocolNumber
and ProtocolIndex. The ProtocolIndex is just an autonumber field to keep
track of the records, which also falls as the primary key to the table.
Within the Couples_Index table I've placed the "ProtocolIndex" field in so it
would match with the one coming in from the Protocol_Index table/form. Does
this make any sense?
> > I have a form that contains record number information and alittle bit of data
> > based on this record number. Each "record number" is linked to a couples
[quoted text clipped - 32 lines]
>
> Hope that helps