Solved

How alter code if field is a text field

Posted on 2014-03-17
2
359 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

In the previous article, Using a Critera Form to Filter Records (http://www.experts-exchange.com/A_6069.html), the form was basically a data container storing user input, which queries and other database objects could read. The form had to remain op…
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…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…

911 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

17 Experts available now in Live!

Get 1:1 Help Now