Solved

Access Report Problem

Posted on 2014-03-20
5
322 Views
Last Modified: 2014-04-02
I have created a report in Access 2013.  On the detail I have a Text Box and a Command Button.  When the Command is clicked I want to perform an action based on the content of the Text Box.  How do I get the content of the Text Box???
0
Comment
Question by:Ray Turner
  • 2
  • 2
5 Comments
 
LVL 84

Accepted Solution

by:
Scott McDaniel (Microsoft Access MVP - EE MVE ) earned 500 total points
ID: 39942198
You refer to a Textbox like this:

Me.NameOfYourTextbox

So if I wanted to popup a Msgbox:

Msgbox "Value is  " & Me.NameOfYourTextbox

However, on a Report, you will have multiple instances of the TExtbox, if you're referring to one in the Detail or Group sections of your report.
0
 

Author Comment

by:Ray Turner
ID: 39942496
I'm referring to the one in the Detail Group.
0
 

Author Comment

by:Ray Turner
ID: 39961975
I've requested that this question be closed as follows:

Accepted answer: 0 points for rgturner's comment #a39942496

for the following reason:

Reference an item in the Group band the same way you reference an item in the Detail band.
0
 
LVL 84
ID: 39961976
Wasn't that basically what I told you - that you reference the two the same way?
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

Suggested Solutions

Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…

809 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