Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Accpac Runtime Error 13 Type Mismatch

Status
Not open for further replies.

irenavassilia

Programmer
Jun 19, 2007
101
Hi help?
Error at Set dsDet

Code:

Dim WithEvents dsDet As ACCPACDSControl
Dim strManfItem As String
Dim strCompName As String
Private Sub AccpacOE1100UICtrl1_OnUIAppOpened()
MsgBox "Opened"
Set dsDet = AccpacOE1100UICtrl1.UIDSControls("adsOEORDD")
MsgBox "dsDet Set"
strCompName = AccpacOE1100UICtrl1.UISession.CompanyID
MsgBox strCompName
Me.Caption = strCompName & " - " & "O/E Order Entry"
End Sub

Thanks.
 
Your code is fine. Did you put the AccpacOE1100UICtrl on a form or are you calling it at run time?
 
I copy and pasted your code and it works. Not to sure what it could be. Maybe trying it in a new project.
 
Still the same on my Clients computer.. works perfectly fine on mine.

This is a brain teaser..

 
Your client has a different version of that module activated. Or, you need to delete *.EXD on that computer.
 
Figured it out, I'm not sure why this is by evidently the AccpacOE1100.OCX file wasnt registered properly so i re-registered it and it worked.

Thanks for the replies :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top