Access how do i create a search box,then use the info to pre fill

S

shedendcfc

How do i create a serch box that finds an account number, then using that
account number auto fill a form with the persons name and address
 
G

golfinray

Put a combo box on your form. Allow the wizard to do that for you and select
account number as the number it looks up. Then right click on the combo to
get properties, go to events, select the afterupdate event and click the
little button out to the right, start the code builder. Type:
Me.Filter = "[account#] = """ & Me.combo# & """"
Me.filteron = true
The combo number will be listed, like combo10 or combo 22
 

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