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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I declare a variable that will contain value from by db

Status
Not open for further replies.

RSX02

Programmer
May 15, 2003
467
CA
Hi I have a field in my database that is declared as decimal(9)
I have to add two of them in VBA.
I have to declare 2 variables that can contain the data of my field.
How should I declare my variables?
Single
Double
anything else
???
Thanks id advance
 
Open Table that contains data you reffering to (in Design view) and look what datatype field is.
This will help I hope

Ask if need to be
TIA
 
I'm not sure I understand what you mean?
 
Rsx02

It all depends on how big the numbers are going to get.

I personally try to avoid using Single and stick with Double, to prevent any possible overflows.



Leigh Moore
LJM Analysis Ltd
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top