Here is what I have thus far:
1) A form which allows me to enter a record which includes Make, Mode, and ID number. form is called "frmPhoneUpdate".
2) Data is stored in a table called "tblModels". Its PK = "LngModelID"
3) On the form, frmPhoneUpdate", I have it broken into to segments. The top 1/2 has the entry text boxes allowing me to enter the data. The bottom 1/2 has a list box which displays a query, which is merely a query showing all the data from tblModels. Basically, it provides me a listing i can scroll through and see what models are already in the table.
What I am trying to do is if I find a record within that list box that needs editing, I would like to double click it within that list box and have the top 1/2 of the form go right to that record for me. I have done this numerous times with a separate form, but now I am dealing with one form only.
I tried the following under the double-click property for the Listbox, but I keep getting syntax errors. I tried to rework the line I use to go to a record on a separate form, but am not having luck. here is the code:
DoCmd.GoToRecord , , "tblModels.lngModelID = " & Me.List14, , acDialog
Thanks for any help in advance guys!
Richard
1) A form which allows me to enter a record which includes Make, Mode, and ID number. form is called "frmPhoneUpdate".
2) Data is stored in a table called "tblModels". Its PK = "LngModelID"
3) On the form, frmPhoneUpdate", I have it broken into to segments. The top 1/2 has the entry text boxes allowing me to enter the data. The bottom 1/2 has a list box which displays a query, which is merely a query showing all the data from tblModels. Basically, it provides me a listing i can scroll through and see what models are already in the table.
What I am trying to do is if I find a record within that list box that needs editing, I would like to double click it within that list box and have the top 1/2 of the form go right to that record for me. I have done this numerous times with a separate form, but now I am dealing with one form only.
I tried the following under the double-click property for the Listbox, but I keep getting syntax errors. I tried to rework the line I use to go to a record on a separate form, but am not having luck. here is the code:
DoCmd.GoToRecord , , "tblModels.lngModelID = " & Me.List14, , acDialog
Thanks for any help in advance guys!
Richard