combo box on continuous form not bringing up correct record

Hi guys,
In my latest program, I have a continuous form.
each record line of the form is based off of the field : slipnumbercounter, which is hidden behind some objects, since the user does not need access to it.
the combo box is bound to the field " vesselname "

anyway, I have tried various ways of having the query behind my combo box for the vessel lookup which is called: vesselname
I cannot get it to bring up the associated vessels that customer may have.
the best I could do so far by changing the query around to different tables and fields, is to get it to populate all the records on the continuous form, which is no good.
so, I have attached to this question 3 images of my database...
thanks for your help.
kevin rea
lanacster, calif.

This is the Slips Main Form screen, the one that has the combo box I want to lookup the correct value fromThis is the Edit Customer Info Screen, where I can attach several vessels to the customer in its subform.This is the query behind the combo box on the main form, Slips Main Form.
kevinreaAsked:
Who is Participating?
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.

Jeffrey CoachmanMIS LiasonCommented:
If I am understanding your request here, ...
It is not easy to get a combobox to function this way in a continuous form.  

But you can do this right on your main customer form.

In design view add a combobox on the main form.
When the wizard opens select : "Find a record on my form..."
...then follow the rest of the wizard's steps.
This will create a combobox to allow you to select a customer and go to that customers record. Then, obviously, you will see a list of all Vessels associated with that Customer in the subform.

;-)

JeffCoachman
0
mbizupCommented:
Slightly different understanding of your request here...

Are you trying to limit the vessels in the drop down list in each row of your continuous form so that you can follow this process for data entry?
1. Select a slip number
2. Assign a customer to that slip
3. Select which vessel the customer is storing at that slip

?

The problem with this approach is that each control (such as your vessel combo box) is really a single control - even though it is seen in multiple records on your continuous form. So if you change the rowsource of the vessel combo to select records for a given customer, it will affect the combo in ALL records of your form causing a visible mis-match between the customers and the vessel dropdown list if you are using a datasheet or continuous forms.

There are a number of workarounds for this:

1.  Use single form view instead of continuous forms.
2.Use a small popup form in single form view to handle your data entry while showing the continuous form in the background.  An edit button can be used to bring up the popup.
OR
3. Use unbound controls in the header section of your continuous form.  An Edit button in the detail rows of the continuous form could be used to copy the values into the controls in the header and set the combo's rowsource according to customer, and a Save button in the header could be used to save any changes to the record and refresh the continuous form.
0
kevinreaAuthor Commented:
the data for the vessel name is entered in the customer form.
this slips main form would be used to select one of the already existing customers, and then the name of the customers boat.
the only thing I would be newly assigning in this current record is : the slipdescription, occupied, and date available.
all the other data about the customer would have already been created.
I do not like using continuous forms, but I have talked to several marinas, and they want to see and get at all of their docs/slips at one time.

so I am trying to accomplish that.

kevin
0
10 Tips to Protect Your Business from Ransomware

Did you know that ransomware is the most widespread, destructive malware in the world today? It accounts for 39% of all security breaches, with ransomware gangsters projected to make $11.5B in profits from online extortion by 2019.

Jeffrey CoachmanMIS LiasonCommented:
In either event, This sounds fairly straightforward.

So I will step aside, and let you continue on with mbizup to avoid confusion...

;-)

JeffCoachman
0
kevinreaAuthor Commented:
I figured out a solution myself..i included the fields I need in the previous combo box, and then I just took them from there.

thanks for trying to help guys.
kevin rea
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
kevinreaAuthor Commented:
the one that worked
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.