Solved

Access Report Problem

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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

Overview: This article:       (a) explains one principle method to cross-reference invoice items in Quickbooks®       (b) explores the reasons one might need to cross-reference invoice items       (c) provides a sample process for creating a M…
Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
Familiarize people with the process of utilizing SQL Server stored procedures 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 Micr…
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.

860 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