I'm working with a school database and I'd like to add a search function that will display a list of students with a command button that will jump to that particular record. I'm having a devil of a time with the code for the command button. Here's what I have so far:
Private Sub ShowRecord_Click()
DoCmd.OpenForm "Student Profiles", , , _
"[Students.ID]=" & _
"'" & Me.List0.Column(0) & "'"
DoCmd.Close acForm, "F_ListSearch"
End Sub
Any suggestions?
Private Sub ShowRecord_Click()
DoCmd.OpenForm "Student Profiles", , , _
"[Students.ID]=" & _
"'" & Me.List0.Column(0) & "'"
DoCmd.Close acForm, "F_ListSearch"
End Sub
Any suggestions?