distinction between using .text and .value in VBA access

Posted by every_answer_gets_a_point on Stack Overflow See other posts from Stack Overflow or by every_answer_gets_a_point
Published on 2010-05-16T14:55:24Z Indexed on 2010/05/16 15:00 UTC
Read the original article Hit count: 130

Filed under:
|
|
|

i am passing the textbox1.text values into a query and sometimes into a string

sometimes i say this:

dim combor1 as string
combor1 = comboReason1.Text

how do i know when i should put combor1=comboreason1.value ??

also why do i need to set focus for a control to reference its property? that doesn't make sense to me

also when i set combor4 = comboReason4.Value and the .value is null, then i get an error about invalid use of null

please help!

© Stack Overflow or respective owner

Related posts about access

Related posts about macros