Open a form in context from a multiple item form

J

Jools Southcote

I have a multiple item form based on a query. It is a list of customers
along with the total invoice amount. Each customer is identified by a
category AND the customer name. I have added a button at the end of each
line to open a form that allows me to edit the customer and also display a
list of invlices in a subform.

No matter what I try, the form I'm trying to open always displays the same
customer record. It will not display the customer of the row in which I
clicked on the button.

I'm sure that this can't be that difficult, I just can't crack it.

I am a beginner at VB and I'm using Access 2007.
 
J

Jools Southcote

I'm using an embedded macro, there is only one action (OpenForm) and it has
the following arguments:

Customer, Form, , "[CustomerCategory]=" & "'" & [CustomerCategory] & "'" And
"[Customer]=" & "'" & [Customer] & "'", , Normal
 

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