EOleexception with message overflow



using Delphi 6 with an access database.

I have this code which inserts a record into an access table using and adocommand. This code usually gets executed following the execution of the application. (main form is loaded, executed as the result of a button click)

I have since taken the 'same code' and am attempting to use it during the ONSHow event of the main form. The data it is writing is the same but I get the EOleexception with message 'overflow' error. Any ideas on what I should look for to solve this. I have checked to make sure that the connection to the database is open. The parameters I am setting in the adocommand.commandtext are the same.

Any thoughts would be appreciated.

.


Quantcast