JohnMichael72
Gold Supporter
- Local time
- Today, 01:43
- Joined
- Jul 25, 2019
- Messages
- 11
Requesting your assistance with something that I am sure you will find super easy; however I am struggling. I have a double click event set up on a subform field that when clicked opens another form to that record, working amazingly well. I would like to add some code that allows the user to click on an empty field of the subform and it will open up the same form to the acFormAdd property. The code I have so far is
I would definitely appreciate any assistance you can give!
John
Code:
Private Sub AttDescription_DblClick(Cancel As Integer)
Dim MyGUID As String
On Error GoTo Err_YourButton_Click
MyGUID = StringFromGUID(Me!AttachID)
MyGUID = MID(MyGUID, 7, 38)
stLinkCriteria = "[AttachID]='" & MyGUID & "'"
DoCmd.OpenForm "frmAttachments", , , stLinkCriteria
Exit_YourButton_Click:
Exit Sub
Err_YourButton_Click:
MsgBox Err.Description
Resume Exit_YourButton_Click
End Sub
I would definitely appreciate any assistance you can give!
John