Through some ingeneous placement of MsgBox statements, I identified that the problem was in the REGENUMVALUE statement. I looked at the VBAPI.COM file on this function and found that the statement explaining the lpData and lpcbData fields is slightly incorrect (from what I can tell.) I do not need the data and datasize as returned by this call, so I supplied "ByVal 0" as the parameter value for both as instructed by the API Guide. While this worked in the IDE, it was causing an error code 87 (Incorrect Parameter) when run as a complied application. I changed the parameters to variables (data(0) and datalen as described by the API Guide) and recompiled the application. When executed, everything worked properly this time around.

As a side note, I still supplied "ByVal 0" as the parameter value for lpReserved as instructed by the API Guide.

Looks like all is well now.

Thanks for your help!!!

Dan