Selecting a record

D

Dennis

I have created a form that accesses a table. This form should allow a new
record to be added or to update and existing record. How do I select a
record from a list of all opportunities in the table or add a record if that
is the intent? Should I create another form that has a drop-down control and
then open the main form?

Thanks.
Dennis
 
G

Golfinray

Put a combo box on the form (use the wizard to do that and allow the wizard
to set the source for you.) Right click on the combo box, and under events,
click afterupdate. Click the little button out to the right and start the
code builder and type:
Me.filter = "[id or whatever you want to use] =""" & me.combo# & """"
Me.filteron = true
The combo box number will be listed, like combo 12 or combo 43
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top