Solved

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

Posted on 2013-06-05
6
544 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 21
ID: 39223704
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
ID: 39224018
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
ID: 39224069
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
SuperAntiSpyware Licenses Discounted by 25% !

Exclusive offer to Experts Exchange Members!
Buy SuperAntiSpyware License(s) from us and save 25% on the regular purchase price.
- Includes Full SuperAntiSpyware Vendor Support Entitlements
- Your Subscription does not begin until you activate your license
- Buy for your friends

 

Author Comment

by:josiechapman
ID: 39224096
OrderID is on the subreport.
0
 
LVL 21

Accepted Solution

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

Office 365 Training for IT Pros

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes two methods for creating a combo box that can be used to add new items to the row source -- one for simple lookup tables, and one for a more complex row source where the new item needs data for several fields.
This article describes a method of delivering Word templates for use in merging Access data to Word documents, that requires no computer knowledge on the part of the recipient -- the templates are saved in table fields, and are extracted and install…
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

734 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