Solved

Access Report Problem

Posted on 2014-03-20
5
316 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Most if not all databases provide tools to filter data; even simple mail-merge programs might offer basic filtering capabilities. This is so important that, although Access has many built-in features to help the user in this task, developers often n…
It took me quite some time to sort out all the different properties of combo and list boxes available from Visual Basic at run-time. Not that the documentation is lacking: the help pages are quite thorough and well written. The problem was rather wh…
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…

747 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

12 Experts available now in Live!

Get 1:1 Help Now