After doing as Allan has advised, placing the Breakpoint immediate after
costCenter = Me.cboCostCentre
centreCostDesc = Me.cboCentreCostDesc
centreCatDesc = Me.cboCatDesc
when you click the Command Button, the program will stop and take you to the point in code after the assignments have been made. You can then either
Use ?costCenter in the Immediate Window and hit <Enter>
or
Simply hold your Cursor over the Variable, and its Value will appear
Or, you can forget about setting a Breakpoint and simply add the Bolded line of code, below, to test the Variables:
Code:
costCenter = Me.cboCostCentre
centreCostDesc = Me.cboCentreCostDesc
centreCatDesc = Me.cboCatDesc
Debug.Print costCenter & " " & centreCostDesc & " " & centreCatDesc
Then, In Form View
- Click on the Command Button
- Now go into Design View
- Go to the Code Module
- Look in the Immediate Window; the Values should be printed there
Linq ;0)>