How can I assign a value to a declared variable in a form

T

Timmy

I need to assign a value from a table to a declared variable in VBA (a
declared variable "Number" takes on a value from table X) It's probably not
hard, but i'm confused about the syntax
 
A

Allen Browne

Did you start the procedure with:
Dim X As Variant

If that doesn't solve it post your procedure.
 
T

Timmy

It did work. I changed it from an interger to a double and it works great.
Thank you very much
 
Top