Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Setting a text search to Currency

Status
Not open for further replies.

Krash878

Programmer
May 8, 2001
172
US
I use a form that looks to a query.

The query has a criteria of currency for a txt box that resides on the form.

The criteria is

Code:
Like "*" & [forms]![frmArchiveChargeBack]![txtSearch] & "*"

Can I make it convert the text to currency here?

Krash

 
Hi

This is not going to work.

You can convert to Currency using CCUR(), but you are using the LIKE operator which is a string operator which accepts wild cards like "*" and "?"

Hope this helps

Ken Reay
Freelance Solutions Developer
Boldon Information Systems Ltd
UK
kenneth.reaySPAMNOT@talk21.com
remove SPAMNOT to use
 
I can take out the wildecards for this.

Code:
Like [forms]![frmArchiveChargeBack]![txtSearch]

where would the ccur go?

Krash
 
HI

no point using LIKE under these circumstances:

= CCur([forms]![frmArchiveChargeBack]![txtSearch])



Hope this helps

Ken Reay
Freelance Solutions Developer
Boldon Information Systems Ltd
UK
kenneth.reaySPAMNOT@talk21.com
remove SPAMNOT to use
 
Yes,
It works.

I set it up after I posted last. I used Like though I will try it with the "=" instead.

Thanks
Krash
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top