Solved

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

Posted on 2013-06-05
6
498 Views
Last Modified: 2013-06-10
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.
0
Comment
Question by:josiechapman
  • 3
  • 3
6 Comments
 
LVL 21
Comment Utility
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
 

Author Comment

by:josiechapman
Comment Utility
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
 
LVL 21
Comment Utility
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
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 

Author Comment

by:josiechapman
Comment Utility
OrderID is on the subreport.
0
 
LVL 21

Accepted Solution

by:
Boyd (HiTechCoach) Trimmell, Microsoft Access MVP earned 500 total points
Comment Utility
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
 

Author Comment

by:josiechapman
Comment Utility
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

Featured Post

Get up to 2TB FREE CLOUD per backup license!

An exclusive Black Friday offer just for Expert Exchange audience! Buy any of our top-rated backup solutions & get up to 2TB free cloud per system! Perform local & cloud backup in the same step, and restore instantly—anytime, anywhere. Grab this deal now before it disappears!

Join & Write a Comment

As with any other System Center product, the installation for the Authoring Tool can be quite a pain sometimes. This article serves to help you avoid making these mistakes and hopefully save you a ton of time on troubleshooting :)  Step 1: Make sur…
Outlook Free & Paid Tools
The viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now