Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

NumericUpDown Set Value

Posted on 2009-04-06
2
Medium Priority
?
747 Views
Last Modified: 2013-12-26
I have a couple of numeric up and down buttons on a form.  One has 3 decimal points and in my class it is declared as a double.
I am trying to set the value,  43545.121, into the control, but I get an error saying I need a maximum, min etc.
I am using the following to put the value in the number portion of the control.
Me.NumValveTiming.Value = cEng.ValveTiming
What is the correct way to set the value of this control?
0
Comment
Question by:Sheritlw
2 Comments
 
LVL 6

Accepted Solution

by:
RPCIT earned 2000 total points
ID: 24082699
On the control properties, there is an option for Max and Min, increment and decimal places.  

I would set your min to something like -99999999999 and max to 999999999999 .. or something like that. Decimal places to 3 or greater, and increment to .001
0
 

Author Closing Comment

by:Sheritlw
ID: 31567293
Exactly what I needed.  
Thank you
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

972 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