Solved

How alter code if field is a text field

Posted on 2014-03-17
2
363 Views
Last Modified: 2014-03-17
I have this code in an onclick event of a command button but RMA is a txt field.  How do I alter the code to make it work?

DoCmd.OpenReport "rptReturns", acViewPreview, , "[RMA]=" & Me.txtRMA, acWindowNormal

--Steve
0
Comment
Question by:SteveL13
[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
2 Comments
 
LVL 120

Accepted Solution

by:
Rey Obrero (Capricorn1) earned 500 total points
ID: 39934147
DoCmd.OpenReport "rptReturns", acViewPreview, , "[RMA]='" & Me.txtRMA & "'", acWindowNormal


e x p l o d e d  v i e w

"[RMA]=' " & Me.txtRMA & " ' ",
0
 

Author Comment

by:SteveL13
ID: 39934153
Yep.  Thanks.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Introduction The Visual Basic for Applications (VBA) language is at the heart of every application that you write. It is your key to taking Access beyond the world of wizards into a world where anything is possible. This article introduces you to…
A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
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…
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…

749 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