So I want to create a pop-up form where my user clicks a button, it opens the form and it's linked to the record they're currently on.
My code is opening the form but it's not linking the two records.
For example, let's say I have a "notes" table. I want all notes to be linked to the specific record. I could just create a subform but it's not as asthetic as I want the form to be. So, I wanted to open up a beautiful form to enter notes.
In the popup form, the for has these controls : ContactID, Subject, Message
Here is the code I tried in the button click:
Code:
Private Sub Notes_Click()
CurRec = Me.ID.Value
DoCmd.OpenForm "SMS Activity", , , "ContactID =" & CurRec
End Sub
I know I'm an idiot so I won't feel bad if you laugh at my own code. LOL. Relearning VBA