Solved

How alter code if field is a text field

Posted on 2014-03-17
2
358 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
2 Comments
 
LVL 119

Accepted Solution

by:
Rey Obrero 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

When you are entering numbers in a speadsheet, and don't remember what 6×7 is, you just type “=6*7" instead. It works in every cell! This is not so in Access. To enter the elusive 42 in a text box, you have to find a calculator, and then copy the re…
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
Familiarize people with the process of utilizing SQL Server views 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 Access…
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…

706 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

18 Experts available now in Live!

Get 1:1 Help Now