My Assistant
![]()
Custom Search
|
![]() ![]() |
![]() |
![]() Post#41 | |
![]() UtterAccess VIP Posts: 1,900 Joined: 4-June 18 From: Somerset, UK ![]() | I believe the error occurs when the object already exists. In which case you 'get' it rather than create it. Place the following code in your error handling routine for this procedure CODE If err 429 then Set SAPBWLogon=GetObject(, "SAPLogonControl.1") Resume Next End If This is air code so check for typos -------------------- |
![]() Post#42 | |
![]() UtterAccess Moderator Posts: 11,910 Joined: 6-December 03 From: Telegraph Hill ![]() | Either that, or the SAPLogonControl is not registered. -------------------- Regards, David Marten |
![]() Post#43 | |
Posts: 6,184 Joined: 11-November 10 From: SoCal, USA ![]() | PMFJI, guys, but i'm wondering about the following line, for my education as much as to help Knuckles: CODE Dim SapBWLogon, SapBWConnection, SapBWFunction, SapBWEventParamater As Object am i right in thinking that the last variable is dimmed as an Object, but all the preceding ones are dimmed as Variant? tia, tina -------------------- "the wheel never stops turning" |
![]() Post#44 | |
![]() UtterAccess Moderator Posts: 11,910 Joined: 6-December 03 From: Telegraph Hill ![]() | Yes, Tina, you are correct. -------------------- Regards, David Marten |
![]() Post#45 | |
![]() UtterAccess VIP Posts: 1,900 Joined: 4-June 18 From: Somerset, UK ![]() | Tina You are correct. Each variable needs to be defined individually or they revert to variant. -------------------- |
![]() Post#46 | |
Posts: 911 Joined: 1-February 10 From: New Jersey ![]() | It is registered, we are thinking it is that SAP is 32 bit |
![]() Post#47 | |
![]() UtterAccess VIP Posts: 1,900 Joined: 4-June 18 From: Somerset, UK ![]() | It may well be so, but I doubt that would cause error 429 (famous last words...!) -------------------- |
![]() Post#48 | |
Posts: 6,184 Joined: 11-November 10 From: SoCal, USA ![]() | thanks, Colin and David. :) tina -------------------- "the wheel never stops turning" |
![]() Post#49 | |
Posts: 911 Joined: 1-February 10 From: New Jersey ![]() | Thank you all, we are digging into SAP a bit. Knuckles |
![]()
Custom Search
|
![]() | Search Top Lo-Fi | 13th December 2019 - 05:19 AM |