Button to edit record from report embedded in tabbed control on form

I'm new to Access and this probably is a very, very easy thing to do...but I keep running into a wall.

Here's the setup:
I have a form that at the top lists basic customer information, ie name, address, etc.
Below this is a tabbed control containing a report of any orders attached to this customer.

Here's what I would like:
I would like to have a button open a form to edit the order information.

Here's what I have so far:
I have already created a button within the report that has an "OpenForm" macro with a 'Where Condition' =[OrderID]. This works fine if there is only 1 order listed on the report. However where there are multiple Orders, it still only defaults to the first order listed on the report.
The report/button work correctly when I open the report on it's own and not from the tabbed control on the custom form. My guess then would be something to possibly do with the filtering on the main customer form?

Any help is appreciated. Thank you in advance.
josiechapmanAsked:
Who is Participating?
 
Boyd (HiTechCoach) Trimmell, Microsoft Access MVPConnect With a Mentor Commented:
I am trying to duplicate what you are doing to see if it will even work with a sub  report.

Have you tried a sub form?

I used the Northwind example database and create a form like you described using a sub form. The Where condition is:

="[Order ID]=" & [Order ID]

Open in new window

0
 
Boyd (HiTechCoach) Trimmell, Microsoft Access MVPCommented:
I would use a form in continuous view rather that a report as a sub form on a tab control.

There is command button wizard for a form that will crater a command button to do exactly what you want.
0
 
josiechapmanAuthor Commented:
Thanks for the quick response.

I actually used the command button wizard to make the original button. I"m thinking either my 'where condition' or filter is incorrect?
0
Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

 
Boyd (HiTechCoach) Trimmell, Microsoft Access MVPCommented:
Is [OrderID]  on the sub report/form?  


Normally this is done using a sub form not a sub report. I have never seen it done with a report.

Have you tried a sub form?
0
 
josiechapmanAuthor Commented:
OrderID is on the subreport.
0
 
josiechapmanAuthor Commented:
I didn't really want to use a form, but this will work as a temporary solution. Thank you for taking the time to look into this. :)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.