AccessDevJunior
Programmer
I have put this code on the double click event of a list box but it dosent work, i want it to open up another form linking the reference number, so that the form opens up with the same reference number as the reference number that has focus on the list box.
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "frm_Edit User Input"
stLinkCriteria = "[forms]![frm_Edit User Input]![Reference Number]=" & "'" & Me![Reference Number] & "'"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Does anyone know where im going wrong?
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "frm_Edit User Input"
stLinkCriteria = "[forms]![frm_Edit User Input]![Reference Number]=" & "'" & Me![Reference Number] & "'"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Does anyone know where im going wrong?