I am trying to build a pop up zoom box which will be activated on a report embedded in a form allowing the user to click on the report and view a field on the underlying table which the report is demonstrating. Furthermore, the user will also have the opportunity to edit the fields contents which the zoom box, upon closing will then paste into the field in the underlying table.
A colleague of mine confirmed for me that this is possible and put me on the right track by showing me that it is possible to extract a field by creating a control on a report. However, i am missing the part to repaste the updates into the underlying field.
Being a report, Sift F2 does not allow the edit..
I would appreciate any advice available.
Thanks,
A
Fantastic effort given by HansUp in live chat directing me to exactly what i needed!
DoCmd.OpenForm "frmZoom2", WhereCondition:="[ID] = " & Me.txtPrimaryKey
Related
The Access template called "Assets" has a great feature in which you can click a button that runs a macro called "AddContactFromOutlook". This opens your Outlook contacts and lets you choose a name to add to a Contacts table.
The problem is, I can't find any basic instructions on how to use it. The macro commands are very simple: basically just "AddContactFromOutlook".
I copied a table from the Assets template into my database, created a form and added a button to run the macro, and it works fine. But when I did the same with a table and form of my own creation, I got this error:
The Command or Action 'AddFromOutlook' isn't available now
I suspect the problem is the names of my fields, although this error sounds like something different.
I've searched online, and mostly see information about special cases, not the basics.
We've just had one of our systems moved to a new server, along with 3600+ SSRS reports. All these reports contain hyperlinks. Unfortunately, none of these hyperlinks have been updated to point to the new server, and so are still opening items on the old server.
Instead of having to edit each hyperlink in each report, is there a way I can globally update the reports at the same time so that the hyperlinks point to the new server?
I thought running an update on the content field in the catalog table might do the job but apparently not from what I've been able to gather online.
Thank you for any help you can give.
Yep, normally it would be better to store your hyperlinks in a dataset.
I dont think you can do that globally, because your hyperlink is embedded in your report.
You can open your report .rdl file in text editor. In the text editor you can search for your hyperlink and replace it with the new value (search & replace). Well this still has to be done per hand for each report.
On top, you can write a small program in C#, .NET, etc... in which you pass your old and new hyperlink (single or as datatable). The program basically, opens all the .rdl reports and apply the search & replace then close and safe it.
We are creating a Summary report with lot of Sub-Reports linked to it in SSRS. When Summary report is exported as excel all Sub-Reports should be exported as separate tabs. So far it is working.
Now the issue is we need to have button in each row on the Summary report (in the tablix) , which when clicked opens up the relevant tab in Excel.This behavior is expected after report has been exported to Excel.I have been looking to find to solutions to this but haven't fount anything so far.
Any pointer/suggestion would be a great help.
Thanks
VSh
Add bookmarks and bookmark links to a report when you want to provide a customized table of contents or to provide customized internal navigation links in the report. Typically, you add bookmarks to locations in the report to which you want to direct users, such as to each table or chart or to the unique group values displayed in a table or matrix. You can create your own strings to use as bookmarks, or, for groups, you can set the bookmark to the group expression.
Here is the Microsoft documentation https://learn.microsoft.com/en-us/sql/reporting-services/report-design/add-a-bookmark-to-a-report-report-builder-and-ssrs
firstly, my database is using a navigation form which has tabs down the side to allow the user to navigate through the forms and then all the forms within this have sub forms.
Now the issue I have is that I'm trying to run a report using a macro and the where condition so that it only shows the current record. If I view the form on its own (not through the navigation form) the button works perfectly (happy days) but when I use it through the navigation form (which is how the user will be using it) it asks me to enter the ID for the record first. Technically the report will still run but it relies on the user entering the correct ID.
this is my where condition: [ChildID]=[Forms]![frmMealChoice]![ChildID] is there a way to navigate to a subform in the where condition?
Sorry if that doesn't make much sense but I can't think of a better way of explaining it, any help would be greatly appreciated.
As I stated in the comments I figured out where I went almost instantly after posting the question. So for anyone interested here is my ammeded where condition;
[ChildID]=[Forms]![FrmMainNavigation]![NavigationSubform]![ChildID]
I recently inherited an Access DB and I have been asked to modify it a little. The file extension is not the typical MDB but is ADP.
In this DB there is a report and it is called, via VBA, like this:
DoCmd.OpenReport "rptExpirationReport", acViewPreview
DoCmd.Maximize
When the window opens after this is called all the user needs to do is click the print button. This prints the entire report to the default printer. The print dialog box doesn't come up, the data just goes straight to the printer.
What I have been asked to do is reduce the amount of paper this process uses so I am going to change this to print to a PDF.
The first issue is that I don't want to change the default printer on the user's computer to print to PDF. So I need to have a way to print this to an installed PDF printer.
The second issue is that I don't know how I'd go about changing this because the Access report window doesn't have many options that I can find. I don't see a way in the VBA code to change the printing button so the user can select their PDF printer.
The last issue is that the report contains a form that is filled out with a person's information and it does this for each person. So if I print this to a PDF, there could be 50 forms that I need to separate out into individual files. The forms are generated one per record and it's just one form that gets filled out, but the form could be 2 or 3 pages, so that isn't constant.
A report can either be pointed to the default printer or a specific printer. To do this through the user interface open the report in design view and select Page Setup. Then on the Page tab Click Use Specific Printer then click the Printer Button to select your PDF virtual printer. Please see the following screenshot for an example:
http://screencast.com/t/lGnYMQm6EIj
To do this programmatically please see the following link:
http://www.access-programmers.co.uk/forums/showthread.php?t=225910