Senin, 01 Februari 2016

Re: [MS_AccessPros] Filter Problem with amount

 

Kevin-


When you concatenate a currency amount in a string, it'll include the currency symbol, so that's the problem.  You need to do something like:

Me.Filter = "Amount = " & Format(Me.Amount01, "0.00")

Include four decimal places if this is a true Currency data type.

John Viescas, Author
Microsoft Access 2010 Inside Out
Microsoft Access 2007 Inside Out
Microsoft Access 2003 Inside Out
Building Microsoft Access Applications 
SQL Queries for Mere Mortals 
(Paris, France)



On Feb 1, 2016, at 8:59 AM, 'zhaoliqingoffice@163.com' zhaoliqingoffice@163.com [MS_Access_Professionals] <MS_Access_Professionals@yahoogroups.com> wrote:

Dear All,
The filter I use doesn't work. Please help.
Me.Filter = "Amount=" & Me.Amount01

The amount is a fixed currency field. What did I do wrong? Thanks in advance.
Best Regards,
Kevin



__._,_.___

Posted by: John Viescas <johnv@msn.com>
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (2)

.

__,_._,___

Tidak ada komentar:

Poskan Komentar