Variables Data Types and Constants

In Chapter 2, while working in the Immediate window, you tried several Visual Basic instructions that returned some information. For example, when you entered ?Forms!Suppliers.RecordSource, you found out that the Suppliers form was based on Suppliers. However, outside the Immediate window, when you write Visual Basic procedures, you can't use the question mark. So how do you obtain your answers while doing real programming? If you enter the Forms!Suppliers.RecordSource statement in your procedure, Visual Basic won't suddenly stop to tell you the result of this instruction. To find out what a particular statement has returned, you must tell Visual Basic to memorize it. You do this by using variables.

0 0

Post a comment