I placed the code in the button using the code builder, but the compile is
giving me a lot of errors. The first error is at the "declare function" line
stating only comments can come after a end function or end sub.
Has anyone a clean version of this code?
Placing the code in the VB editor also breaks it into separate sub procedures.
Is this correct?
Thanks,
Greg
>Generally you want to set the OnClick event for your button to [Event
>Procedure] and place your code in the form's module. The easy way to do
>that is to click the build button on the right side of the OnClick
>event property field in the properties box and choose "Code Builder".
>The code builder wizard will create an event procedure with the correct
>name in the form's module, and open the VB editor for you to enter code.
Bob - 19 Jul 2005 18:42 GMT
I looked at the URL you posted, and it looks as if the code is intended
to be cut and pasted into the editor; i.e. it should work as it is. Why
don't you cut the code from the module and post it here so we can see
it?
Bob