Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / General 1 / November 2004

Tip: Looking for answers? Try searching our database.

TYPE MISMATCH

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
DS - 03 Nov 2004 18:26 GMT
I have a field where the format is set to currency, However I want to
use a Calculator type Number Pad to Enter the Dollar Amounts in gthe
field.  I have this part figured out but I keep getting a Type Mismatch
Error.  Any suggestions?  Thanks.
DS
Salad - 03 Nov 2004 19:38 GMT
> I have a field where the format is set to currency, However I want to
> use a Calculator type Number Pad to Enter the Dollar Amounts in gthe
> field.  I have this part figured out but I keep getting a Type Mismatch
> Error.  Any suggestions?  Thanks.
> DS

Let's say you have a line like
    curVal = Calculator()
    msgbox curVal

What is the value that is being returned from Calculator?
DS - 03 Nov 2004 19:59 GMT
>> I have a field where the format is set to currency, However I want to
>> use a Calculator type Number Pad to Enter the Dollar Amounts in gthe
[quoted text clipped - 7 lines]
>
> What is the value that is being returned from Calculator?

Format(0,"0.#")
Salad - 03 Nov 2004 20:05 GMT
>>> I have a field where the format is set to currency, However I want to
>>> use a Calculator type Number Pad to Enter the Dollar Amounts in gthe
[quoted text clipped - 9 lines]
>>
> Format(0,"0.#")

Format is a string.  Are you then storing it to a Currency field?
DS - 04 Nov 2004 15:43 GMT
>>> I have a field where the format is set to currency, However I want to
>>> use a Calculator type Number Pad to Enter the Dollar Amounts in gthe
[quoted text clipped - 9 lines]
>>
> Format(0,"0.#")
Got it Working, Thanks.
DS
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.