Johnny Drama
In need of beer...
- Local time
- Today, 07:52
- Joined
- Dec 12, 2008
- Messages
- 211
This is probably so simple it's stupid, but I can't figure it out for the life of me. I have a command button on a form which when clicked I would like it to open a second form and pass the value in the "controlnumber" field on form A to "controlnumber" field on form B. The code I'm using below keeps asking for a parameter...I just want what's in the field passed. I've been punching myself in the nuts over this all morning...
Private Sub convobtn_Click()
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "Conversation"
stLinkCriteria = "Me.ControlNumber = Forms!Conversation!ControlNumber"
DoCmd.OpenForm stDocName, acNormal, , stLinkCriteria, , acDialog
End Sub
Private Sub convobtn_Click()
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "Conversation"
stLinkCriteria = "Me.ControlNumber = Forms!Conversation!ControlNumber"
DoCmd.OpenForm stDocName, acNormal, , stLinkCriteria, , acDialog
End Sub