Check the vb code for a fatal. Make sure you have some on error statements in the subroutines. It sounds like something has caused a fatal and continued due to a resume next statement, but that the ObjSessiont is now nothing. Check and see if the ObjSessionis still active or is now set for nothing. Also this could be that the ObjSession is in a class that was dropped after the first run through.
There is a quirk in VBA for excel which can cause the ObjSession to be set to nothing. For whatever reason, your VB code has probably caused the ObjSession to be set to nothing, so if you can find that yoou will proabably resolve the issue. Regards David Jordan Managing Consultant [EMAIL PROTECTED] Dacono Holdings Pty Ltd Business & Technology Consulting PO Box 909 Lane Cove NSW 2066 Australia Ph 61 2 9418 8329 Fax 61 2 9427 2371 www.dacono.com.au -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of UmFooFoo Murphy Sent: Thursday, 29 January 2004 3:44 PM To: [EMAIL PROTECTED] Subject: Help with UniObjects Hello List. I'm hoping that someone out there can help me. I have an application in Visual Basic that uses UniObjects. There is a text box that prompts for a record id. In the lost focus event of the record id's text box, I am opening a file, reading a record, and populating all of the other text boxes on the form. At the end of the SUB, it closes the file, and disconnects from the ObjSession. Sounds easy enough right? Wrong! The first pass through goes fine. I enter an ID and the boxes are populated. However, when I go back to enter a second record id, it appears that the .OPENFILE method in the lost focus event fails. The FileObj is set to NOTHING. However, the .ERROR property of the ObjSession is set to 0 (zero) so it also seems that no error occurred. Either way, I cannot use the File Object as all of the subsequent methods of the File Object fails. I have searched the UVDocs documentation and, according to it, I am using all of the objects and methods correctly. Universe 9.6.1.3 on NT Thanks, in advance, for any help that anyone can offer. _________________________________________________________________ Rethink your business approach for the new year with the helpful tips here. http://special.msn.com/bcentral/prep04.armx _______________________________________________ u2-users mailing list [EMAIL PROTECTED] http://www.oliver.com/mailman/listinfo/u2-users _______________________________________________ u2-users mailing list [EMAIL PROTECTED] http://www.oliver.com/mailman/listinfo/u2-users
