Double click function in a combo box

I have a form called “Scheduling-Edit”. Whe the record has a study in the “StudyID” field I want to be able to double click in that field to open the “Studies-Edit” form to that record. How can I accomplish this goal. Attached is a copy of the database with the forms .
Invoice-7-7-2001-91611.accdb
Chrisjack001Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

pdebaetsCommented:
From your StudyID control OnDblClick event procedure, put

docmd.OpenForm "Studies-Edit",,,"StudyID = " & me!StudyID

Open in new window

0
Chrisjack001Author Commented:
When I put this code in and double clicked I get another box popping up asking me to put parameter value in. Attached is a copy of the error message
Error.JPG
0
pdebaetsCommented:
Open the row source of your "Studies-Edit" form as a query in datasheet view. Do you see the same parameter prompt?
0
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

Chrisjack001Author Commented:
I dont understand what you mean. I am fairly new to Access. Can you please explain in detail what you mean
0
pdebaetsCommented:
Open the "Studies-Edit" form in design mode.

In the form properties sheet, find the Row Source property.

If it is a query, find the query in the Navigation Pane and open it.

If it is an SQL statement ("Select ... From ..."), copy the SQL text and paste into a new query (Create > Query Design > (close "Show Table" dialog) > SQL, then paste). Open it in datasheet view.
0
Chrisjack001Author Commented:
I dont think its a query. The record source is the Studies table. Attached is the screen of my form and properties.
Error.JPG
0
pdebaetsCommented:
I think the parameter prompt is coming from elsewhere.

Try this in your StudID OnDblClick event procedure instead of what I posted above:

DoCmd.OpenForm "Studies-Edit", , , "Studyautonbr = " & Me!StudyID

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Chrisjack001Author Commented:
Thanks
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Access

From novice to tech pro — start learning today.