JamieRhysEdwards
New member
- Local time
- Today, 23:02
- Joined
- Mar 26, 2022
- Messages
- 27
Hi All,
I'm trying to open a Report in which it'll take the ID of the previous "Contact Details" form. This is what I currently have:
However, when I tap the button, it still asks for the ID. I don't think I'm using this function properly. The "Contact Details" form is getting its data from a QueryContactsExtended query (which houses the ID of the subject)
I'm trying to open a Report in which it'll take the ID of the previous "Contact Details" form. This is what I currently have:
Code:
Private Sub CmdNewStarterReport_Click()
DoCmd.OpenReport "ReportNewStarter", acViewPreview, , "ID='" & Me.ID & "'"
End Sub
However, when I tap the button, it still asks for the ID. I don't think I'm using this function properly. The "Contact Details" form is getting its data from a QueryContactsExtended query (which houses the ID of the subject)