Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MS-Access Debug Watch value length is limited

Tags:

I am working in MS-Access 2010 and I am trying to view a variable defined in the VBA code where it has hit a break-point. The problem in the watch window the value text box in the Watches window has a set size, in other words if the value is to long the value is cut-off in the Watches window

How can I view the whole value inside my variable?

like image 220
Mark C Avatar asked Oct 09 '13 18:10

Mark C


1 Answers

It is best to use the intermediate window for this. I frequently do this with SQL queries for this reason.

To show this, use "View--> Intermediate Window" (or Control+G).

Then use syntax like the following:

debug.print "This is a really long stringThis is a really long stringThis is a really long stringThis is a really long stringThis is a really long stringThis is a really long stringThis is a really long stringThis is a really long stringThis is a really long stringThis is a really long stringThis is a really long stringThis is a really long stringThis is a really long stringThis is a really long stringThis is a really long stringThis is a really long stringThis is a really long stringThis is a really long stringThis is a really long stringThis is a really long stringThis is a really long stringThis is a really long stringThis is a really long stringThis is a really long stringThis is a really long stringThis is a really long stringThis is a really long stringThis is a really long stringThis is a really long string" 

And you can select and copy/paste out of the intermediate window or scroll to see the whole variable.

Note that the intermediate window does not get cleared automatically but you can select everything and delete it whenever you want.

like image 123
enderland Avatar answered Sep 30 '22 23:09

enderland