Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem getting the correct record 1

Status
Not open for further replies.

vias

Programmer
Apr 25, 2000
54
GB

I have a combo box and a button next to it
called 'GO'. The combo box gets a list of names
from a table. The 'GO' button is to display
a form attached to a table TabContact

When I click on 'GO' I want the appropriate record
from the table TabContact to be displayed depending
on the name I choose from the combo box.

The problem is whatever I select from the combo and
click on 'Go', it always displays the first record.

Can anybody help.

Thanks.
Vias
 
Why not put the combo box onto the Tabcontact form and let the combo-box wizard do this for you.
 
Take a look at OpenArgs

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Use the good old create button wizard to open a form. Use the opgtion "Open the form and find specific data to display". Follow the wizard to select which control to bind to which field in the next form. Let this button become your new "go" button. Perhaps add some test for Null/no selection in the combo?

Roy-Vidar
 
Roy-Vidar,

Thanks for your help....it works now..

Vias
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top