ReQuery Help

G

Guest

Hi
I built a form based on a query to create an invoice. I have a field in the
invoice called suppliers and when you double click the field it automatically
opens up a form called supplier in the add mode so you can add new suppliers
to the invoice on the fly. The trouble is that when I added a new supplier it
didn't show up immediately inside the form and so i opened the form in design
view and right clicked the supplier field and went to the event tab and
created an afterupdate event that says Me.Supplier.Requery.

That works great as long as I only add one supplier at a time. If I add a
second supplier the second supplier is no longer there. Is there something
else I can try? Any suggestions would be appreciated

Thanks
 
B

Brian Bastl

what is the code for opening your Supplier form?

I'd think that the following should work:

DoCmd.OpenForm "Supplier", , , , acFormAdd, acDialog
Me.[SupplierCombo].Requery 'combobox on Invoice form

Is this what you're doing?

Brian
 

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